We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.0.0
Linux 6.5.2-zen1-1-zen x86_64 unknown
bun install node-rsa
Run on node and bun:
const NodeRSA = require('node-rsa'); const key = new NodeRSA({b: 512}); const text = 'Hello RSA!'; const encrypted = key.encrypt(text, 'base64'); console.log('encrypted: ', encrypted); console.time() const decrypted = key.decrypt(encrypted, 'utf8'); console.timeEnd() console.log('decrypted: ', decrypted);
result:
[user@host]$ node 1.js encrypted: KzeFH2C+tcQ50dE6ix1zSr3TqGMogWPfQzxJTpzm+VNku0GJ9UDt0iJyzJqbmcCyqOgAlBI64PXVb1go7RNyZA== default: 1.198ms decrypted: Hello RSA! [user@host]$ bun 1.js encrypted: aylXzatSYZJtF4KClXZp8QqF01oF55o8hfagYhpmgLmen1a15REDgnVvU2lM04/Vvqk9TeCSTh1V9vKxF5XadQ== [24.20ms] default decrypted: Hello RSA!
No response
The text was updated successfully, but these errors were encountered:
Confirming this is still an issue in Bun v1.1.27
Sorry, something went wrong.
node:crypto
Successfully merging a pull request may close this issue.
What version of Bun is running?
1.0.0
What platform is your computer?
Linux 6.5.2-zen1-1-zen x86_64 unknown
What steps can reproduce the bug?
bun install node-rsa
Run on node and bun:
result:
What is the expected behavior?
No response
What do you see instead?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: