summaryrefslogtreecommitdiffstats
path: root/lib/hex.go
Commit message (Collapse)AuthorAgeFilesLines
* lib/hex: update BytesToHexStrrsiddharth2020-12-061-1/+1
| | | | Don't add space character.
* lib/hex: add HexStrToBytesrsiddharth2020-12-051-0/+19
|
* lib: add BytesToHexStrrsiddharth2020-11-141-0/+9
|
* lib/hex.go: update ByteToHexStrrsiddharth2020-08-311-10/+10
| | | | * lib/hex.go (ByteToHexStr): Move around.
* lib: BytesToHexStr -> AsciiStrToHexStrrsiddharth2020-08-311-2/+3
| | | | | | * challenge/c05.go (C5): Change BytesToHexStr call to AsciiStrToHexStr * lib/hex.go (BytesToHexStr): Rename to... (AsciiStrToHexStr): ...this. Change argument to string.
* challenge: do challenge 5rsiddharth2020-08-301-0/+12
| | | | | | | * challenge/c05.go: Implement challenge 5. * cryptopals.go (main): Add handling to run challenge 5. * lib/hex.go (BytesToHexStr): New function. * lib/xor.go (RepeatingXOR): New function.
* challenge: do challenge 3rsiddharth2020-08-291-0/+29
| | | | | | | | * challenge/c03.go: Implement challenge 3 * cryptopals.go (main): Add handling to run challenge 3 * lib/brute.go (XORCrackSingleKey): New function. * lib/hex.go (HexStrToAsciiStr, ByteToHexStr): New functions. * lib/str.go (FillStr): New function.
* rename package enc -> hexrsiddharth2020-08-291-0/+26
* Makefile (fmt): fmt lib instead of enc * challenge/c01.go: Use lib instead of enc * challenge/c02.go: Use lib instead of enc * enc/b64.go -> lib/b64.go * enc/hex.go -> lib/hex.go * enc/xor.go -> lib/xor.go