Skip to content

Latest commit

 

History

History
57 lines (44 loc) · 1.64 KB

File metadata and controls

57 lines (44 loc) · 1.64 KB
title JavaScript Asymmetric String Encryption using Nodes native "Crypto" Library
keywords sample
summary Asymmetric String Encryption in JavaScript
permalink javascript_asymmetric_string_encryption.html
folder JavaScript Crypto
references
url description
Node.js Crypto
authors
name url
Tobias Hirzel
current_reviews
last_updated 2018-11-27
tags
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 %}