#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

2 unstable releases

0.2.0 Feb 19, 2025
0.1.0 Jan 30, 2025

#1994 in Cryptography

Download history 117/week @ 2025-01-29 8/week @ 2025-02-05

125 downloads per month

Apache-2.0 OR MIT

50KB
1K 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)
  • 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.

X59Registar

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

Dependencies

~31MB
~666K SLoC