Skip to content

Latest commit

 

History

History
57 lines (44 loc) · 1.64 KB

javascript_string_encryption_asymmetric_crypto.md

File metadata and controls

57 lines (44 loc) · 1.64 KB
title keywords summary permalink folder references authors current_reviews last_updated tags
JavaScript Asymmetric String Encryption using Nodes native "Crypto" Library
sample
Asymmetric String Encryption in JavaScript
javascript_asymmetric_string_encryption.html
JavaScript Crypto
url description
Node.js Crypto
name url
Tobias Hirzel
2018-11-27
JavaScript
Node.js
node-crypto
RSA
Asymmetric
String
Encryption

Use cases

  • Usable on server side, not intended for use, on client side, in Browsers
  • All can encrypt a message using the public key, but only the recipient can decrypt it using the private key
  • Encrypt a string, using the public key and decrypting it, using the private key

node version

  • 10.13.0

JavaScript Version

  • ECMAScript 6 and higher

Installation

  • crypto is is a native node module, no installation is required
  • Winston logger

Example Code for JavaScript Asymmetric String Encryption using RSA 4096

{% include_relative src/allinone/ExampleAsymmetricStringEncryption.js %}

{% include links.html %}