I am working on a prototype, so it needs to use RSA between a Chrome Extension and a Python Server.   So far I was planning on using https://sourceforge.net/projects/pidcrypt/ and https://www.dlitz.net/. However, while I can get decrypt and encrypt t...
I'm trying to use WebCrypto to sign a token with RSA-PSS, but I keep getting the error:  DataError: Data provided to an operation does not meet requirements   at crypto.subtle.importKey.  This is my JavaScript code:  function signToken(token, key...
I am trying to implement simple JOSE encrypt and decrypt functions using node-jose.  My code is as follows (written using Node 8.2.1)  const { JWE } = require('node-jose');  const jose = (publicKey, privateKey) => {   async function encryp...
NOTE: Yes, I understand there is a lot of code in this message, but you do encourage us to show prior research and how we've been trying.   Let me preface this by saying, I am not interested in the security of this function. All I want is to encr...
I base my work on this answer  I'm trying to verify a file using a public key. Here is my code:  var hash = crypto.createHash("sha256"); hash.setEncoding("hex"); var fd = fs.createReadStream("path/to/my/file"); fd.on("...
I am trying to take ed = 1 mod((p-1)(q-1)) and solve for d, just like the RSA algorithm.  e = 5, (p-1)*(q-1) = 249996  I've tried a lot of code in javascript such as:  function modInverse(){ var e = 5; var p = 499; var q = 503; var d = e.modInver...
Is there a way to generate both private and public keys using javascript?  And I need to those key in a database.     -----BEGIN RSA PRIVATE KEY----- MIICXQIBAAKBgQDlOJu6TyygqxfWT7eLtGDwajtNFOb9I5XRb6khyfD1Yt3YiCgQ   WMNW649887VGJiGr/L5i2osbl8C9+WJTe...
I have a need to encrypt data entered by users on a form on the client side. My environment doesn't have ssl encryption, but I have found out that in my case I can achieve a similar result with RSA encryption. The public key will be used on the c...
I am looking for a JS crypto lib (similar to, say, OpenSSL's libcrypto) that facilitates digital signing of data in the browser. I want to sign form form data on the client side using a private key (RSA, PKI certificates or similar).  EXAMPLE...
I encrypt plain text from JS RSA Library(http://www-cs-students.stanford.edu/~tjw/jsbn/) and decrypt from python, Crypto.PublicKey.  But, when I decrypt cipher text from JS with python, It has dummy text. I don't know why they are.  So, I want cl...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.