#product-os #encryption-decryption #jwt #security #certificate #hashing #hash

product-os-security

Product OS : Security provides a suite of helper tools to easily perform cryptograhpic operations including generating hashes, encrypting and decryting content

20 releases

new 0.0.21 Apr 21, 2024
0.0.20 Apr 14, 2024
0.0.16 Dec 25, 2023
0.0.13 Nov 30, 2023
0.0.7 Aug 21, 2023

#701 in Cryptography

Download history 50/week @ 2023-12-24 5/week @ 2023-12-31 45/week @ 2024-01-07 31/week @ 2024-01-14 23/week @ 2024-01-21 12/week @ 2024-01-28 24/week @ 2024-02-04 29/week @ 2024-02-11 23/week @ 2024-02-18 304/week @ 2024-02-25 45/week @ 2024-03-03 69/week @ 2024-03-10 47/week @ 2024-03-17 70/week @ 2024-03-24 91/week @ 2024-03-31 137/week @ 2024-04-07

357 downloads per month
Used in 20 crates (15 directly)

AGPL-3.0-only

240KB
4K SLoC

Product OS : Security

Product OS : Security provides a suite of helper tools to easily perform cryptograhpic operations including generating hashes, encrypting and decryting content.

What is Product OS?

Product OS is a collection of packages that provide different tools and features that can work together to build products more easily for the Rust ecosystem.

Installation

Use the Rust crate package manager cargo to install Product OS : Security.

cargo add product-os-security

or add Product OS : Security to your cargo.toml [packages] section.

product-os-security = { version = "0.0.21", features = [], default-features = true, optional = false }

Features

Product OS Security supports a number of features leveraging existing Rust libraries to help perform cryptographic operations including:

  • Creating and verifying authentication requests
  • Creating salted hashes
  • Hex encoder and decoder
  • Blake 2 Hash and MAC generator
  • JWT token generator and claim manager
  • JWT token verifier
  • Certificate management
  • Public and private key generator
  • Public key signer and verifier
  • Public and private key encryption and decryption
  • Symmetric key encryption and decryption
  • Diffie Hellman key management
  • Secure key exchange using Diffie Hellman
  • Time-based OTP generation
  • Password hashing using Argon 2
  • URI encoding and decoding for string safety
  • Supports no_std with alloc only environments for most features

Note: the following features do not support no_std:

  • jwt_encrypt_decrypt_std
  • diffie_hellman_client_server_key_store
  • public_private_encrypt_decrypt
  • public_private_sign_verify
  • certificates_openssl
  • vendored-openssl
// Feature samples TODO

Usage

// Examples TODO

Contributing

Contributions are not currently available but will be available on a public repository soon.

License

GNU AGPLv3

Dependencies

~8–24MB
~675K SLoC