An open API service indexing awesome lists of open source software.

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

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.