use-crypto 0.0.1

Cryptographic algorithm and key metadata labels for RustUse
Documentation
  • Coverage
  • 28.05%
    23 out of 82 items documented1 out of 23 items with examples
  • Size
  • Source code size: 10.3 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.14 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 2s Average build duration of successful builds.
  • all releases: 2s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • Documentation
  • RustUse/use-security
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-crypto

Cryptographic algorithm, key, signature, digest, and encoding-label primitives for RustUse.

Experimental

use-crypto is experimental while the use-security workspace remains below 0.3.0. Expect small API adjustments during the first release wave.

Example

use use_crypto::{CryptoStrength, HashAlgorithm};

assert_eq!(HashAlgorithm::Sha256.strength(), CryptoStrength::Strong);
assert!(HashAlgorithm::Md5.is_deprecated_like());

Scope

  • Cryptographic algorithm, hash, signature, encryption, key, usage, encoding, and strength labels.
  • Metadata helpers for deprecated or weak algorithm labels.

Non-goals

  • Cryptographic operations.
  • Key generation.
  • Hashing, signing, encryption, decryption, or certificate handling.

License

Licensed under either of the following, at your option:

  • Apache License, Version 2.0
  • MIT license