openssl sha -sha256 ws-test.js
echo -n 'your string' | opsnssl sha -sha256
openssl rand 192
openssl rand 192 -out pwd.txt
openssl rand 192 -base64 -out pwd.txt
openssl aes-256-cbc -in input-file.txt -out output-file.txt.enc
openssl aes-256-cbc -d -in output-file.txt.enc -out file.txt
openssl aes-256-cbc -in input-file.txt -out output-file.txt.enc -pass file:pwd.txt
openssl aes-256-cbc -d -in outout-file.txt.enc -out input-file.txt -pass file:pwd.txt
ssh-keygen -t rsa -C '[email protected]'
openssl rsautl -encrypt -oaep -pubin -inkey <(ssh-keygen -e -f test.pub -m PKCS8) -in password.key -out password.key.enc
openssl rsautl -decrypt -oaep -inkey test -in password.key.enc -out password.key.dec
Usefull docs: https://gist.github.com/colinstein/de1755d2d7fbe27a0f1e