mirror of
https://github.com/arnaucube/cryptofun.git
synced 2026-02-28 05:16:46 +01:00
9aa4a2d1a09335ea844d8b5d6323da2ac85605cf
cryptofun
Crypto algorithms from scratch. Academic purposes only.
RSA
https://en.wikipedia.org/wiki/RSA_(cryptosystem)#
- GenerateKeyPair
- Encrypt
- Decrypt
- Blind
- Blind Signature
- Unblind Signature
- Verify Signature
- Homomorphic Multiplication
Paillier
https://en.wikipedia.org/wiki/Paillier_cryptosystem
- GenerateKeyPair
- Encrypt
- Decrypt
- Homomorphic Addition
Shamir Secret Sharing
https://en.wikipedia.org/wiki/Shamir%27s_Secret_Sharing
- create secret sharing from NumOfSecretsNeed, NumOfShares, RandPointP, SecretToShare
- Lagrange Interpolation to restore the secret from the shares
ECC
Languages
Go
100%