Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

heroesofcode/cryptotools

Repository files navigation

cryptotools

CI Crates.io Docs License

cryptotools is a simple, easy-to-use library for cryptographic utilities in Rust. It currently provides the following:

  • Base64 encoding
  • Base64 decoding
  • MD5 encryption (hashing)

Installing

cargo add cryptotools

[dependencies]
cryptotools = "0.3.0"

Usage

Base64 Encoding & Decoding

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

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 for details.

About

cryptotools is a cryptography library

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

Languages

AltStyle によって変換されたページ (->オリジナル) /