Skip to content

Instantly share code, notes, and snippets.

View 842Mono's full-sized avatar
🔍
Job Search : )

Mina William Michael 842Mono

🔍
Job Search : )
View GitHub Profile
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##
@842Mono
842Mono / libsodium xchacha20poly1305_ietf.js
Created March 25, 2018 07:11
Encrypting and decrypting a message using secret key aead xchacha20poly1305_ietf (libsodium js)
'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