I hereby claim:
- I am tinnedtuna on github.
- I am tinnedtuna (https://keybase.io/tinnedtuna) on keybase.
- I have a public key whose fingerprint is A45B 9785 BA62 D5EF FAB3 6D42 A079 F9D8 C704 A629
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| import HeysCipher | |
| import Data.ByteString as B | |
| import Data.Bits | |
| import Data.Word | |
| import System.Environment | |
| main = do | |
| [arg, filename] <- getArgs | |
| let bytes = read arg :: Integer | |
| let randomBytes = (B.pack . genBytes . read) arg |
| module HeysCipher ( crypt, decrypt, Key ) where | |
| import Data.Word | |
| import Data.Bits | |
| import Test.QuickCheck hiding ( (.&.) ) | |
| import Prelude hiding (round) | |
| -- | Represents the key for a cipher, 80-bits. | |
| type Key = (Word16, Word32, Word32) |
| def compose(f, g): | |
| return lambda(x):f(g(x)) | |
| def composecurry(f): | |
| return lambda(x) : compose(f,x) | |
| def composevar(*fns): | |
| acc = (lambda (x) : x) | |
| for f in fns: |