Skip to content

Latest commit

 

History

History
56 lines (44 loc) · 1.57 KB

File metadata and controls

56 lines (44 loc) · 1.57 KB
title JavaScript Password Based String Encryption using Nodes native "Crypto" Library
keywords sample
summary Password based string encryption in JavaScript
permalink javascript_string_encryption_password_based_symmetric.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
AES
GCM
PBKDF2
Salt
AEAD

Use cases

  • Usable on server side, not intended for use, on client side, in Browsers
  • Password based encryption of a String
  • Previously shared common secret (password)

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 Password Based String Encryption using AES-GCM and PBKDF2

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

{% include links.html %}