https://github.com/luckcoding/api-aes-ras
https://github.com/luckcoding/api-aes-ras
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/luckcoding/api-aes-ras
- Owner: luckcoding
- Created: 2019-11-05T13:28:26.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-06-13T13:14:34.000Z (almost 3 years ago)
- Last Synced: 2024-12-31T12:27:28.083Z (over 1 year ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 前后端AES与RSA混合加密
> nodejs 不推荐做计算密集型的操作,方法仅供参考!😬😬😬
## Mac 生成公私钥
1. `$ openssl genrsa -out private.pem 1024`生成私钥;
2. `openssl pkcs8 -topk8 -inform PEM -in private.pem -outform PEM -nocrypt`私钥转换成`PKCS8`格式;
3. `openssl rsa -in private.pem -out public.pem -pubout`使用私钥生成公钥。