NocryptoNocrypto: for when you're sick of crypto.
A compact crypto library.
The overarching API principle is simply mapping inputs to outputs, wherever feasible.
Similar algorithms in the same class (like hashes or block ciphers) are presented as distinct modules sharing the same signature.
Randomness is treated as an ambient effect.
module Base64 : sig ... endBase64 conversion.
module Numeric : sig ... endNumeric utilities.
module Hash : sig ... endHashes.
module Cipher_block : sig ... endBlock ciphers.
module Cipher_stream : sig ... endStreaming ciphers.
module Rng : sig ... endSecure random number generation.
module Rsa : sig ... endRSA public-key cryptography.
module Dsa : sig ... endDSA digital signature algorithm.
module Dh : sig ... endDiffie-Hellman, MODP version.