forge
forge copied to clipboard
A native implementation of TLS in Javascript and tools to write crypto-based and network-heavy webapps
I use forge using the following: ``` ... const buffer = forge.util.createBuffer(result.certificate as Buffer); const p12Asn1 = forge.asn1.fromDer(buffer); **const p12 = forge.pkcs12.pkcs12FromAsn1(p12Asn1, password);** ... ``` I noticed that decrypting the...
I am trying to decrypt a message in node.js using node-forge but it's throwing "Invalid RSAES-OAEP padding." Code snippet: ```js var forge = require('node-forge'); var rsa = forge.pki.rsa; var pkey...
``` var ed25519 = forge.pki.ed25519; var password = 'Mai9ohgh6ahxee0jutheew0pungoozil'; var seed = new forge.util.ByteBuffer(password, 'utf8'); var keypair = ed25519.generateKeyPair({seed: seed}); // this will throw and error ``` the error is...
This is after doing `npx expo install`.
updated readme: "verify" instead of "sign" comment above the verify method ( ED25519.verify() )
fix this problem: https://github.com/digitalbazaar/forge/issues/952
Hi, I'm coming across the following error when I try updating an HMAC with an ArrayBuffer that comes from a slice of a file upload. ``` const hmac = forge.hmac.create()...
I'm new and I don't know how to fix this. 
Handling inside forge attributes like messageDigest and signingTime is really nice, but not allowing any other attributes is quite limiting. This change allow the user to build and use any...
The example showing how to use ASN.1 involves using `_bnToBytes` This function is found in `rsa.js` This function is not included in the exports for the module. The example is...