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

product-os-security

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

27 releases

0.0.28 May 18, 2024
0.0.27 May 18, 2024
0.0.21 Apr 21, 2024
0.0.16 Dec 25, 2023
0.0.7 Aug 21, 2023

#487 in Cryptography

Download history 43/week @ 2024-07-20 61/week @ 2024-07-27 64/week @ 2024-08-03 84/week @ 2024-08-10 40/week @ 2024-08-17 48/week @ 2024-08-24 50/week @ 2024-08-31 24/week @ 2024-09-07 58/week @ 2024-09-14 119/week @ 2024-09-21 40/week @ 2024-09-28 5/week @ 2024-10-05 25/week @ 2024-10-12 26/week @ 2024-10-19 45/week @ 2024-10-26 31/week @ 2024-11-02

127 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.28", 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

~10–24MB
~709K SLoC