https://github.com/ronaldmannak/encryption
Playground RSA encryption and signing
https://github.com/ronaldmannak/encryption
crypto encryption rsa rsa-algorithm rsa-cryptography rsa-encryption rsa-key rsa-key-encryption rsa-signature
Last synced: 8 months ago
JSON representation
Playground RSA encryption and signing
- Host: GitHub
- URL: https://github.com/ronaldmannak/encryption
- Owner: ronaldmannak
- Created: 2018-07-23T23:33:37.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-07-23T23:49:03.000Z (over 7 years ago)
- Last Synced: 2025-04-06T04:15:25.610Z (9 months ago)
- Topics: crypto, encryption, rsa, rsa-algorithm, rsa-cryptography, rsa-encryption, rsa-key, rsa-key-encryption, rsa-signature
- Language: Swift
- Size: 8.79 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Encryption
Playground RSA encryption and signing
Swift implementation of the RSA encryption algorithm, based on the description in [ArsTechnica](https://arstechnica.com/information-technology/2013/10/a-relatively-easy-to-understand-primer-on-elliptic-curve-cryptography/), for demo purposes.
## Known issues
- When randomly generating p, q and the public key, the generated private key becomes negative, causing encryption to fail.
- Integer overflows possible when using large p, q or max.
- There are likely many edge cases the code doesn't handle.