https://github.com/sammyne/crypto-rs
A Go-like crypto library in Rust
https://github.com/sammyne/crypto-rs
cryptography digital-signature encryption hash rust
Last synced: over 1 year ago
JSON representation
A Go-like crypto library in Rust
- Host: GitHub
- URL: https://github.com/sammyne/crypto-rs
- Owner: sammyne
- License: isc
- Created: 2019-10-26T06:42:19.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2023-04-14T02:09:06.000Z (about 3 years ago)
- Last Synced: 2025-03-03T18:51:32.281Z (over 1 year ago)
- Topics: cryptography, digital-signature, encryption, hash, rust
- Language: Rust
- Size: 3.22 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# crypto-rs
[](https://sammyne.github.io/crypto-rs/crypto/)

This repository tries to implement a Go-like crypto library in Rust.
## Algorithms
> The added time of every new algorithm should be recorded in the table below.
| Algorithm | AddedAt(YY/MM/DD) |
| ---------: | :---------------- |
| AES | 19/12/25 |
| Curve25519 | 19/12/30 |
| ED25519 | 20/01/04 |
| HMAC | 20/01/09 |
| MD5 | 19/12/26 |
| RC4 | 20/01/11 |
| RIPEMD160 | 19/12/26 |
| SHA1 | 20/03/10 |
| SHA3 | 20/03/06 |
| subtle | 20/01/11 |
## Examples
Just check the corresponding tests of the same names under the tests folder~
## FAQ
- Q: Why not separate each algorithm as small crates?
- A: There're some common trait depended by these cryptographic algorithms. If packing these
traits as a crate, it may happen that crates in this repository reference different versions
of the common traits. Besides, if a crate of the same commit hash is specified with tag/rev,
it's treated as two crates by cargo, which has no fix right now. So I'd like to package all of
them into a large crate, and enable them through **features**.