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...
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("...
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 am using RSA encryption with nodejs crypto module.  I want encrypt message with PRIVATE KEY and decrypt with PUBLIC KEY. also always make different result with same message using padding scheme like encryption using public key.  So I used basic cry...
I am using WebCrypto with RSASSA-PKCS1-v1_5 (https://github.com/diafygi/webcrypto-examples#rsassa-pkcs1-v1_5---sign) and I need to export the public key to PEM format using javascript code.  The documentation says that is possible to export the key i...
i would like to create a public/private key RSA with the Apps Script service of Google. I found documentation but it's not seen to have someting like "generate key" or like in c# using the RSACryptoServiceProvider when you can create a ke...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.