summaryrefslogtreecommitdiffstats
path: root/enc/hex.go
Commit message (Collapse)AuthorAgeFilesLines
* rename package enc -> hexrsiddharth2020-08-291-26/+0
| | | | | | | | | * 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
* challenge: do challenge 2rsiddharth2020-08-291-0/+10
| | | | | | | * challenge/c02.go: Challenge 2 snafu. * cryptopals.go: Add challenge 2. * enc/hex.go (DecToHexChar): New function. * enc/xor.go (FixedXOR): New function.
* enc: fromHexChar -> HexCharToDecrsiddharth2020-08-291-0/+16
* enc/b64.go (fromHexChar): Move and rename this function to... * enc/hex.go (HexCharToDec): ...this.