Skip to content

Latest commit

 

History

History
57 lines (45 loc) · 1.51 KB

File metadata and controls

57 lines (45 loc) · 1.51 KB
title JavaScript String Hashing using Nodes native "Crypto" Library
keywords sample
summary JavaScript based string hashing
permalink javascript_string_hash.html
folder JavaScript Crypto
references
url description
Winston
authors
name url
Tobias Hirzel
current_reviews
last_updated 2018-11-27
tags
JavaScript
Node.js
node-crypto hash
SHA
SHA-512

Use cases

  • Usable on server side, not intended for use, on client side, in Browsers
  • Verifying, if a string has been changed

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 String Hashing using SHA-512, BASE64 and UTF-8 encoding

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

{% include links.html %}