forge
                                
                                
                                
                                    forge copied to clipboard
                            
                            
                            
                        A native implementation of TLS in Javascript and tools to write crypto-based and network-heavy webapps
Hello! When I create a certificate request, convert it to PEM format, and then decode it back, I get an error: `Error: Only 8, 16, 24, or 32 bits supported:...
Chrome browser supports uploading streaming https://developer.chrome.com/docs/capabilities/web-apis/fetch-streaming-requests over HTTP/2. On Chrome HTTP/2 is only supported over `https:`. How would I go about wrapping `TCPServerSocket` with `forge` to implement a TLS support...
So I think I encountered a typo in the aes.js lib file. On line 203, the length of `tmp` is found using `tmp.length()`. But, a) this results in a type...
I have this code: ```js let pubKey = forge.pki.publicKeyFromPem(environment.publicKey); let encryptText = pubKey.encrypt(forge.util.encodeUtf8("Some text")); ``` If i do that, the decryption work: ```js let pk = forge.pki.privateKeyFromPem(environment.privateKey); let plain =...
All of a sudden started seeing this error in Sentry. Nothing related to encryption has been changed on our end. Any idea where to look at? Happens on a Galaxy...
Hey The bug is that when you try to decrypt a message that is not a multiple of 16 bytes, it is truncated to the minimal multiple. To reproduce the...
The Certificate.sign() function only supports RSA keys and throws a type error. When I dove in, it turned out that it needed the forge.pki.rsa.PrivateKey type. Is there a different function...
Hi, I'm trying to use the AES_ECB decryption as mentionned in the doc. the key is a string (the key is 256bit long) in a file and the encrypted data...
currently using jsencrypt and node-forge for decrypt and encrypt the message using RSA, while jsencrypt is used in frontend and node-forge in backend. ``` import { JSEncrypt } from 'jsencrypt'...