datacrypto-1.1.0: Encryption library
Copyright(c) dr. Jonas Birch 2025
LicenseMIT
Maintainernone
Stabilitystable
Portabilityportable
Safe HaskellSafe
LanguageHaskell2010

Data.Crypto

Description

Block cipher encryption library.

Synopsis

Documentation

generatekey :: Word -> Key Source #

Takes an integer value in the range [0..1023] and produces a ten bit encryption key.

encrypt :: Key -> Word8 -> Word8 Source #

Encrypting an 8 bit value.

decrypt :: Key -> Word8 -> Word8 Source #

Decrypting an 8 bit value.

hash :: Int -> Word8 -> Word8 Source #

hash n val

Hashes an 8 bit value, using n number of rounds.