https://github.com/heroesofcode/cryptotools
cryptotools is a cryptography library
https://github.com/heroesofcode/cryptotools
Last synced: about 2 months ago
JSON representation
cryptotools is a cryptography library
- Host: GitHub
- URL: https://github.com/heroesofcode/cryptotools
- Owner: heroesofcode
- License: mit
- Created: 2024-04-08T01:36:25.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2026-01-23T14:53:10.000Z (about 2 months ago)
- Last Synced: 2026-01-24T06:03:44.807Z (about 2 months ago)
- Language: Rust
- Homepage:
- Size: 78.1 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# cryptotools
[](https://github.com/heroesofcode/cryptotools/actions/workflows/CI.yml)
[](https://crates.io/crates/cryptotools)
[](https://docs.rs/cryptotools)
[](https://github.com/heroesofcode/cryptotools/blob/main/LICENSE)
cryptotools is a simple, easy-to-use library for cryptographic utilities in Rust. It currently provides the following:
- [x] Base64 encoding
- [x] Base64 decoding
- [x] MD5 encryption (hashing)
## Installing
cargo add cryptotools
```toml
[dependencies]
cryptotools = "0.3.0"
```
## Usage
### Base64 Encoding & Decoding
```rust
use cryptotools::encode_base64::Base64Encode;
use cryptotools::decode_base64::Base64Decode;
let input = "hello world";
let encoded = Base64Encode::encode(input);
println!("Base64 Encoded: {}", encoded);
let decoded = Base64Decode::decode(&encoded);
println!("Base64 Decoded: {}", decoded);
```
### MD5 Hashing
```rust
use cryptotools::encrypt_md5::MD5;
let input = "password123";
let hash = MD5::encrypt(input);
println!("MD5 Hash: {}", hash);
```
## License
cryptotools is released under the MIT license. See [LICENSE](https://github.com/heroesofcode/cryptotools/blob/main/LICENSE) for details.