rscryptodome-bctf 0.1.0

A cryptography library for Rust
Documentation
  • Coverage
  • 0%
    0 out of 3 items documented0 out of 2 items with examples
  • Size
  • Source code size: 10.75 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 105.68 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 7s Average build duration of successful builds.
  • all releases: 7s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • smederij-bctf/rscryptodome-bctf
    0 1 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • smederij-bctf

rscryptodome

A crypto library for Rust.

Usage:

cargo add rscryptodome-bctf
use rscryptodome_bctf::{sha256sum, constant_time_eq};

fn main() {
    let hash = sha256sum(b"abc");
    let expected = "ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad";
    assert!(constant_time_eq(&hash, expected.as_bytes()));
}