Project
phylax
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.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
Development
Licenses
MIT
Dependencies