How to Encrypt and Decrypt with NodeJSby@alexadam
3,066 reads

How to Encrypt and Decrypt with NodeJS

tldt arrow
Read on Terminal Reader
Read this story w/o Javascript

Too Long; Didn't Read

How to encrypt text: create a file named encdec.js and paste: require('crypto')const encrypt = (plainText, password) Then run: encode, decrypt, encode and test: "Hello World," "secret1234" Then run the decryption function: "decrypted" and "encrypted" output: Hello World.js. Then run encode and decrypt: "Decry" and encode text: "Hey World. What do you know? How do we know?"

Company Mentioned

Mention Thumbnail

Coin Mentioned

Mention Thumbnail
featured image - How to Encrypt and Decrypt with NodeJS
Alex Adam HackerNoon profile picture

@alexadam

Alex Adam


Receive Stories from @alexadam

react to story with heart

RELATED STORIES

L O A D I N G
. . . comments & more!
Hackernoon hq - po box 2206, edwards, colorado 81632, usa