arnaucube
arnaucube/cryptofunPublic Self-hosted repository
cryptofun/README.md
README.mdRaw
 1# cryptofun [![Go Report Card](https://goreportcard.com/badge/github.com/arnaucode/cryptofun)](https://goreportcard.com/report/github.com/arnaucode/cryptofun)
 2
 3Crypto algorithms from scratch. Academic purposes only.
 4
 5
 6## RSA
 7https://en.wikipedia.org/wiki/RSA_(cryptosystem)#
 8- [x] GenerateKeyPair
 9- [x] Encrypt
10- [x] Decrypt
11- [x] Blind
12- [x] Blind Signature
13- [x] Unblind Signature
14- [x] Verify Signature
15- [x] Homomorphic Multiplication
16
17## Paillier
18https://en.wikipedia.org/wiki/Paillier_cryptosystem
19- [x] GenerateKeyPair
20- [x] Encrypt
21- [x] Decrypt
22- [x] Homomorphic Addition
23
24## Shamir Secret Sharing
25https://en.wikipedia.org/wiki/Shamir%27s_Secret_Sharing
26- [x] create secret sharing from number of secrets needed, number of shares, random point p, secret to share
27- [x] Lagrange Interpolation to restore the secret from the shares
28
29## Diffie-Hellman
30https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange
31- [x] key exchange
32
33## ECC
34https://en.wikipedia.org/wiki/Elliptic-curve_cryptography
35- [x] define elliptic curve
36- [x] get point at X
37- [x] Add two points on the elliptic curve
38- [x] Multiply a point n times on the elliptic curve
39
40## ECC ElGamal
41https://en.wikipedia.org/wiki/ElGamal_encryption
42- [x] ECC ElGamal key generation
43- [x] ECC ElGamal Encrypton
44- [x] ECC ElGamal Decryption
45
46---
47
48To run all tests:
49```
50go test ./... -v
51```