Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | lib/aes.go: add KeyExpansion | rsiddharth | 2020-11-14 | 1 | -0/+97 | |
| | | | | Written while listening to Neil Young's Decade. | |||||
* | lib: add BytesToHexStr | rsiddharth | 2020-11-14 | 1 | -0/+9 | |
| | ||||||
* | lib: add GFMultiply | rsiddharth | 2020-11-08 | 1 | -0/+128 | |
| | ||||||
* | Makefile: 'build' and 'fmt' are phony | rsiddharth | 2020-11-08 | 1 | -0/+2 | |
| | ||||||
* | update main | rsiddharth | 2020-09-06 | 1 | -0/+2 | |
| | | | | * cryptopals.go (main): Add handling to run challenge 6. | |||||
* | challenge: do challenge 6 | rsiddharth | 2020-09-06 | 1 | -0/+122 | |
| | | | | * challenge/c06.go: Implement challenge 6. | |||||
* | lib: AlphaScore -> AlphaPunchScore | rsiddharth | 2020-09-06 | 1 | -1/+1 | |
| | | | | | * lib/str.go (AlphaScore): Rename to... (AlphaPunchScore): ...this. | |||||
* | lib: isAlpha -> isAlphaPunch | rsiddharth | 2020-09-06 | 1 | -2/+3 | |
| | | | | | | * lib/str.go (isAlpha): Rename to... (isAlphaPunch): ...this. (AlphaScore): change isAlpha call to isAlphaPunch call. | |||||
* | lib: remove genKey | rsiddharth | 2020-09-06 | 1 | -14/+0 | |
| | | | | * lib/hamming.go (genKey): Remove function. | |||||
* | lib: update KeySizeWithMinDistance | rsiddharth | 2020-09-06 | 1 | -3/+3 | |
| | | | | | | * lib/hamming.go (KeySizeWithMinDistance): Add argument 'bs'. Use first K bytes and next K bytes of 'bs' for 'p' and 'q'. | |||||
* | lib: remove KeySizeWithMinDistanceIter | rsiddharth | 2020-09-06 | 1 | -15/+0 | |
| | ||||||
* | lib: add BreakIntoBlocks | rsiddharth | 2020-09-06 | 1 | -1/+1 | |
| | | | | * lib/blocks.go (BreakIntoBlocks): Fix typo -- 8 -> keysize. | |||||
* | lib: update XORCrackSingleKey | rsiddharth | 2020-09-06 | 1 | -5/+5 | |
| | | | | | * lib/brute.go (XORCrackSingleKey): Simplify function; use FillBytes and FixedXORBytes | |||||
* | lib: update isAlpha | rsiddharth | 2020-09-06 | 1 | -0/+6 | |
| | | | | * lib/str.go (isAlpha): Add common punctuation. | |||||
* | lib: add FillBytes | rsiddharth | 2020-09-06 | 1 | -0/+11 | |
| | | | | * lib/str.go (FillBytes): New function. | |||||
* | lib: add FixedXORBytes | rsiddharth | 2020-09-06 | 1 | -0/+12 | |
| | | | | * lib/xor.go (FixedXORBytes): New function. | |||||
* | lib: add TransposeBlocks | rsiddharth | 2020-09-06 | 1 | -0/+17 | |
| | | | | * lib/blocks.go (TransposeBlocks): New function. | |||||
* | lib: add BreakIntoBlocks | rsiddharth | 2020-09-06 | 1 | -0/+32 | |
| | | | | * lib/blocks.go (BreakIntoBlocks): New function. | |||||
* | lib: add AlphaScore | rsiddharth | 2020-09-05 | 1 | -0/+10 | |
| | | | | * lib/str.go (AlphaScore): New function. | |||||
* | lib: add isAlpha | rsiddharth | 2020-09-05 | 1 | -0/+10 | |
| | | | | * lib/str.go (isAlpha): New function. | |||||
* | lib: move around stripSpaceChars | rsiddharth | 2020-09-05 | 2 | -15/+15 | |
| | | | | | * lib/b64.go (stripSpaceChars): Move to... * lib/str.go (stripSpaceChars): ...here. | |||||
* | lib: add Base64ToBytes | rsiddharth | 2020-09-05 | 1 | -0/+32 | |
| | | | | | | * lib/b64.go (Base64ToBytes): New function. lib/b64.go | |||||
* | lib: add index | rsiddharth | 2020-09-05 | 1 | -0/+10 | |
| | | | | * lib/b64.go (index): New function. | |||||
* | lib: add stripSpaceChars | rsiddharth | 2020-09-05 | 1 | -0/+15 | |
| | | | | * lib/b64.go (stripSpaceChars): New function. | |||||
* | lib: add KeySizeWithMinDistanceIter | rsiddharth | 2020-09-05 | 1 | -0/+14 | |
| | | | | * lib/hamming.go (KeySizeWithMinDistanceIter): New function. | |||||
* | lib: add KeySizeWithMinDistance | rsiddharth | 2020-09-05 | 1 | -0/+23 | |
| | | | | * lib/hamming.go (KeySizeWithMinDistance): New function. | |||||
* | lib: update HammingDistance | rsiddharth | 2020-09-05 | 1 | -1/+1 | |
| | | | | lib/hamming.go (HammingDistance): Change type of arguments to []byte. | |||||
* | lib: add genKey | rsiddharth | 2020-09-05 | 1 | -0/+14 | |
| | | | | * lib/hamming.go (genKey): New function. | |||||
* | lib: add HammingDistance | rsiddharth | 2020-09-04 | 1 | -0/+27 | |
| | | | | * lib/hamming.go (HammingDistance, setBits): New functions. | |||||
* | LICENSE: ISC -> my name | rsiddharth | 2020-08-31 | 1 | -7/+8 | |
| | ||||||
* | lib/hex.go: update ByteToHexStr | rsiddharth | 2020-08-31 | 1 | -10/+10 | |
| | | | | * lib/hex.go (ByteToHexStr): Move around. | |||||
* | lib: BytesToHexStr -> AsciiStrToHexStr | rsiddharth | 2020-08-31 | 2 | -3/+4 | |
| | | | | | | * challenge/c05.go (C5): Change BytesToHexStr call to AsciiStrToHexStr * lib/hex.go (BytesToHexStr): Rename to... (AsciiStrToHexStr): ...this. Change argument to string. | |||||
* | README.md: update running | rsiddharth | 2020-08-30 | 1 | -1/+1 | |
| | ||||||
* | README.md: update running | rsiddharth | 2020-08-30 | 1 | -2/+8 | |
| | ||||||
* | README.md: remove building; update running | rsiddharth | 2020-08-30 | 1 | -10/+4 | |
| | ||||||
* | README.md: update building | rsiddharth | 2020-08-30 | 1 | -1/+1 | |
| | ||||||
* | go.mod: go: change to 1.11 | rsiddharth | 2020-08-30 | 1 | -1/+1 | |
| | ||||||
* | lib: update HexToBase64 | rsiddharth | 2020-08-30 | 1 | -1/+1 | |
| | | | | | * lib/b64.go (HexToBase64): Use hex instead of base 2 for the second AND to get the last 6 bits. | |||||
* | challenge: do challenge 5 | rsiddharth | 2020-08-30 | 4 | -0/+65 | |
| | | | | | | | * 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/c04.go: add license | rsiddharth | 2020-08-30 | 1 | -0/+3 | |
| | ||||||
* | README.md: update main blurb | rsiddharth | 2020-08-30 | 1 | -2/+3 | |
| | ||||||
* | challenge: do challenge 4 | rsiddharth | 2020-08-30 | 2 | -0/+365 | |
| | | | | | * challenge/c04.go: Implement challenge 4. * cryptopals.go (main): Add handling to run challenge 4. | |||||
* | README.md: . -> , in main blurb | rsiddharth | 2020-08-29 | 1 | -1/+1 | |
| | ||||||
* | challenge: do challenge 3 | rsiddharth | 2020-08-29 | 5 | -0/+119 | |
| | | | | | | | | * 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. | |||||
* | lib/xor.go: FixedXOR: add doc string. | rsiddharth | 2020-08-29 | 1 | -0/+1 | |
| | ||||||
* | Makefile: fmt: remove -x switch | rsiddharth | 2020-08-29 | 1 | -1/+1 | |
| | ||||||
* | add README.md | rsiddharth | 2020-08-29 | 1 | -0/+22 | |
| | ||||||
* | rename package enc -> hex | rsiddharth | 2020-08-29 | 6 | -8/+8 | |
| | | | | | | | | | * 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 | |||||
* | enc/xor.go: add license header | rsiddharth | 2020-08-29 | 1 | -0/+3 | |
| | ||||||
* | challenge/c02.go: add license header | rsiddharth | 2020-08-29 | 1 | -0/+3 | |
| |