cryptotools 0.3.0

cryptotools is a cryptography library
Documentation
  • Coverage
  • 30%
    3 out of 10 items documented0 out of 6 items with examples
  • Size
  • Source code size: 11.06 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.68 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 14s Average build duration of successful builds.
  • all releases: 10s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • heroesofcode/cryptotools
    1 0 1
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • joaolfp

cryptotools

CI Crates.io Docs License

cryptotools is a cryptography library, with it you can:

  • Encode to base64
  • Decode the base64 value
  • Encrypt to md5

Installing

In the file Cargo.toml

[dependencies]
cryptotools = "0.3.0"

Usage

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);

License

cryptotools is released under the MIT license. See LICENSE for details.