#encryption #signature #digest #post-quantum-cryptography #crypto #yaml

libslug

A Rust Library For Cryptography Intended For Slug20 That Supports X59 Certificate Format and Post-Quantum Cryptography

3 releases (breaking)

new 0.3.0 Mar 8, 2025
0.2.0 Feb 19, 2025
0.1.0 Jan 30, 2025

#2727 in Cryptography

Download history 117/week @ 2025-01-29 8/week @ 2025-02-05 132/week @ 2025-02-19 7/week @ 2025-02-26

152 downloads per month

Apache-2.0 OR MIT

62KB
1.5K SLoC

Slug20 Library

Description

slug20 is a tool used to encrypt data inspired by minisign. It is simple, minimilastic, and has advanced security built-in. It implements zeroize, subtle, and subtle-encoding for maxmimum security.

On top of encryption, it creates a new standard for Modern Certificates using YAML. Its format (X59CERT) is lightweight and can easily be serialized.

It extends to include development of modern, decentralized PKI systems and modular formats for use with different systems.

Features

  • Default Encryption: ECIES Encryption over Curve25519 using AES-GCM
  • Post-Quantum Encryption: ML-KEM
  • Signature Schemes: ED25519, SPHINCS+ (SHAKE256), Schnorr over Ristretto (Curve25519)
  • Cert Format: X59 Certificate Standard
  • Message-Types: Supports UTF-8 Messages (so we can include emojis)
  • Encryption: AES-GCM 256 + XChaCha20-Poly1305
  • Randomness Generation: Supports Randomness Generation from the Operating System. Supports VRFs via Schnorr

X59Registar

X59Registar is a novel project being developed for decentralized public-key infrastructures using the X59CERT format in YAML.

Dependencies

~36MB
~751K SLoC