This is a Chinese version of https://gist.github.com/1207002/86f48cd3b3b72c85e6293926cf7c730de03b2f08 from lucasfais
⌘T | 前往文件 |
⌘⌃P | 前往项目 |
⌘R | 前往 method |
⌘⇧P | 命令提示 |
This is a Chinese version of https://gist.github.com/1207002/86f48cd3b3b72c85e6293926cf7c730de03b2f08 from lucasfais
⌘T | 前往文件 |
⌘⌃P | 前往项目 |
⌘R | 前往 method |
⌘⇧P | 命令提示 |
1) Generate RSA key: | |
$ openssl genrsa -out key.pem 1024 | |
$ openssl rsa -in key.pem -text -noout | |
2) Save public key in pub.pem file: | |
$ openssl rsa -in key.pem -pubout -out pub.pem | |
$ openssl rsa -in pub.pem -pubin -text -noout | |
3) Encrypt some data: |