RubyGems Navigation menu

phylax 0.1.0

phylax (Greek "guardian") is a thin, safe-by-default binding to the Windows Cryptography API: Next Generation (CNG / bcrypt.dll) and DPAPI. It does not implement any cryptography of its own — it exposes the operating system's own validated primitives through an ergonomic, hard-to-misuse Ruby API: a cryptographically secure RNG, SHA-2 hashing and HMAC (one-shot and streaming), PBKDF2 key derivation, authenticated AES-256-GCM encryption (SecretBox, with nonces generated and framed automatically so reuse is impossible), a constant-time comparison, and DPAPI protect/unprotect for secrets at rest. Windows MSVC (mswin) Ruby only.

Gemfile:
=

install:
=

Versions:

  1. 0.1.0 June 02, 2026 (20 KB)

Development Dependencies (4):

minitest ~> 5.0
rake ~> 13.0
rake-compiler ~> 1.2
vcvars ~> 0.1, >= 0.1.1

Owners:

Pushed by:

Authors:

  • ned

SHA 256 checksum:

=

Total downloads 255

For this version 255

Version Released:

License:

MIT

Required Ruby Version: >= 3.0

New versions require MFA: true

Version published with MFA: true

Links: