https://github.com/winand/rsa-encrypt-test
Experiments with RSA encryption
https://github.com/winand/rsa-encrypt-test
Last synced: about 1 year ago
JSON representation
Experiments with RSA encryption
- Host: GitHub
- URL: https://github.com/winand/rsa-encrypt-test
- Owner: Winand
- Created: 2023-12-31T11:20:17.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-01-02T11:56:13.000Z (over 2 years ago)
- Last Synced: 2025-01-31T06:37:36.758Z (over 1 year ago)
- Language: Go
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Key generation
```bash
rm -rf ./keys && mkdir -p ./keys/client ./keys/server
ssh-keygen -t rsa -q -N "" -f ./keys/client/ssh_key
ssh-keygen -t rsa -q -N "" -f ./keys/server/ssh_key
```
# Links
- [Use Go to encrypt message with ssh-rsa public key <...>](https://stackoverflow.com/questions/71960918/use-go-to-encrypt-message-with-ssh-rsa-public-key-which-then-can-be-decrypted-us)
- [Encrypting Data With SSH Keys and Golang](https://earthly.dev/blog/encrypting-data-with-ssh-keys-and-golang/)
- [Encrypt/Decrypt a file using RSA public-private key pair](https://kulkarniamit.github.io/whatwhyhow/howto/encrypt-decrypt-file-using-rsa-public-private-keys.html)
- [Using -iter or -pbkdf2 would be better](https://unix.stackexchange.com/q/507131)
- [How to use ssh-rsa public key to encrypt a text?](https://superuser.com/a/576558)
- [Create an OpenSSL signature](https://xn--verschlsselt-jlb.it/openssl-first-steps/#:~:text=Create%20an%20OpenSSL%20signature)
# Notes
- EdDSA [Ed25519](https://ru.wikipedia.org/wiki/EdDSA#Ed25519) is used for signing, not encrypting
- [AES CBC can be decrypted with a different IV](https://security.stackexchange.com/q/270396) because IV affects only first block