This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt install openssl | |
##CAUTION## | |
##INSTALLING THE DEBIAN PACKAGE BELOW MIGHT BREAK AN UBUNTU SYSTEM## | |
##PLEASE PROCEED ONLY IF YOU KNOW THE UBUNTU SYSTEM WELL## | |
## need to download from archive.ubuntu.com slash ubuntu slash pool slash main slash o slash openssl slash libssl1.1_1.1.1f-1ubuntu2.17_amd64.deb ## | |
##CAUTION## | |
##INSTALLING THE DEBIAN PACKAGE ABOVE MIGHT BREAK AN UBUNTU SYSTEM## | |
##PLEASE PROCEED ONLY IF YOU KNOW THE UBUNTU SYSTEM WELL## |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict' | |
const sodium = require('libsodium-wrappers'); | |
sodium.ready.then(function() | |
{ | |
console.log('sodium ready'); | |
//xchacha20ploy1305 ietf | |
//A key and a nonce are generated by the encrypting party. The decrypting | |
//party should use them for decryption |