[开发杂项][Ubuntu][消息编码]

Posted xcy6666

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了[开发杂项][Ubuntu][消息编码]相关的知识,希望对你有一定的参考价值。

Asymmetric encryption

For Asymmetric encryption you must first generate your private key and extract the public key.

openssl genrsa -aes256 -out c_passwd_prv.key 8192
openssl rsa -in c_passwd_prv.key -pubout -out c_passwd_pub.key

To encrypt:

openssl rsautl -encrypt -pubin -inkey c_passwd_pub.key -in <(echo "THE PASSWORD TEXT") -out encrypted_c_passwd.enc

To decrypt:

openssl rsautl -decrypt -inkey c_passwd_prv.key -in encrypted_c_passwd.enc -out plaintext.txt

以上是关于[开发杂项][Ubuntu][消息编码]的主要内容,如果未能解决你的问题,请参考以下文章

[开发杂项][Ubuntu][常用命令杂项]

[开发杂项][Ubuntu][常用命令杂项]

[开发杂项][Ubuntu][常用命令杂项]

[开发杂项][Ubuntu][常用命令杂项]

浅谈 MISC杂项设备

Ubuntu 杂项