I hereby claim:
- I am pgergis on github.
- I am pgergis (https://keybase.io/pgergis) on keybase.
- I have a public key ASBKowxsFEj6wIF8ls7zrqOEq1w5ZQdn5_9sxwmnL8_H5go
To claim this, I am signing this object:
-- file: vigenereCipher.hs | |
import Data.Char | |
let2int :: Char -> Int | |
let2int c = ord c - ord 'a' | |
int2let :: Int -> Char | |
int2let n = chr (ord 'a' + n) |
--file: cryptoMath.hs | |
-- Cryptopals: http://cryptopals.com/sets/1 | |
-- Hex encoding: [0..9][A..F] | |
-- B64 encoding: [A..Z][a..z][0..9][+][/][[=]] | |
-- Note: Each hex char is 4 bits; each b64 char is 6 bits | |
module CryptoMath where |
import io | |
def _str_decode(fd, str_len): | |
len_digits = [str(str_len)] | |
char = fd.read(1) | |
while char != ':': | |
len_digits.append(char) | |
char = fd.read(1) | |
try: | |
str_len = int(''.join(len_digits)) |
I hereby claim:
To claim this, I am signing this object: