minicrypto 0.3.0

Modern cryptography for D


To use this package, run the following command in your project's root directory:

Manual usage
Put the following dependency into your project's dependences section:

Minicrypto

Tiny, zero-dependency cryptographic primitives library for D language.

Most of it is a direct port of Monocypher C code to D, retaining Monocypher API.

GitHub Actions CI Status DUB Package License: CC0-1.0

Features

  • Fast
  • No garbage collector usage (@nogc)
  • Portable across Windows and Posix systems

Modules

  • minicrypto.argon2 - Argon2 key derivation function
  • minicrypto.blake2b - BLAKE2b cryptographic hash function
  • minicrypto.chacha20 - ChaCha20 stream cipher
  • minicrypto.poly1305 - Poly1305 one-time message authentication code
  • minicrypto.aead - ChaCha20-Poly1305 authenticated encryption with associated data (AEAD) algorithm
  • minicrypto.x25519 - elliptic-curve Diffie-Hellman based on Curve25519
  • minicrypto.csprng - cryptographically secure pseudorandom number generator.

BetterC

Minicrypto can be optionally used in BetterC mode. Add the following to your dub.json:

"subConfigurations": {
    "minicrypto": "betterC"
}

License

CC0 1.0 Universal

Disclaimer

Minicrypto is intended for applications that need lightweight cryptographic primitives for custom secure transport protocols, such as online games, VoIP and IoT. It is not a replacement for a full cryptographic protocol library, and I don't recommend it for critical tasks. Do not design your own cryptographic systems unless you know what you are doing.

Authors:
  • Timur Gafarov
Dependencies:
none
Versions:
0.4.0 2026-Jul-29
0.3.0 2026-Jul-28
0.2.0 2026-Jul-28
0.1.0 2026-Jul-28
~main 2026-Jul-29
Show all 5 versions
Download Stats:
  • 0 downloads today

  • 3 downloads this week

  • 3 downloads this month

  • 3 downloads total

Score:
0.0
Short URL:
minicrypto.dub.pm