Crates.io | cryptotools |
lib.rs | cryptotools |
version | 0.3.0 |
created_at | 2024-04-08 20:42:51.434571+00 |
updated_at | 2025-06-27 23:30:37.251296+00 |
description | cryptotools is a cryptography library |
homepage | |
repository | https://github.com/heroesofcode/cryptotools |
max_upload_size | |
id | 1201259 |
size | 11,609 |
cryptotools is a cryptography library, with it you can:
In the file Cargo.toml
[dependencies]
cryptotools = "0.3.0"
In the first example, if you want to encode and decode base64
use cryptotools::encode_base64::Base64Encode;
use cryptotools::decode_base64::Base64Decode;
// Encode
let encode = Base64Encode::encode("123456789");
println!("{}", encode);
// Decode
let decode = Base64Decode::decode("MTIzNDU2Nzg5");
println!("{}", decode);
To encrypt a value to md5
use cryptotools::encrypt_md5::MD5;
let md5 = MD5::encrypt("9999");
println!("{}", md5);
cryptotools is released under the MIT license. See LICENSE for details.