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 keywords summary permalink folder references authors current_reviews last_updated tags
JavaScript Password Based String Encryption using Nodes native "Crypto" Library
sample
Password based string encryption in JavaScript
javascript_string_encryption_password_based_symmetric.html
JavaScript Crypto
url description
Node.js Crypto
name url
Tobias Hirzel
2018-11-27
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 %}