openssl
echo -n "MESSAGE" | openssl sha1 echo -n "MESSAGE" | openssl dgst -md5 echo -n "MESSAGE" | openssl dgst -sha256
openssl rsautl -encrypt -pubin -inkey <public-keyfile.pem> -in <input-file.txt> -out <output-file.rsa>
openssl rsautl -decrypt -inkey <private-keyfile.pem> -in <input-file.rsa>
openssl rsa -in <private-keyfile.pem> -text -noout
openssl rsa -pubin -in <public-keyfile.pem> -text -noout
openssl rsa -in <private-keyfile.pem> -out <private-keyfile.der> -outform der
openssl rsa -pubin -in <public-keyfile.pem> -out <public-keyfile.der> -outform der
openssl rsa -in <private-keyfile.der> -inform der -out <private-keyfile.pem>
openssl rsa -pubin -in <public-keyfile.der> -inform der -out <public-keyfile.pem>
openssl x509 -in <public-keyfile.crt> -text -noout
openssl rand <バイト数> openssl rand -hex <バイト数> openssl rand -base64 <バイト数> openssl rand -out <file-name> <バイト数>
openssl help openssl <command> -help
echo -n "文字列" | openssl dgst -sha256 -binary | base64