summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* lib: add BytesToHexStrrsiddharth2020-11-141-0/+9
|
* lib: add GFMultiplyrsiddharth2020-11-081-0/+128
|
* Makefile: 'build' and 'fmt' are phonyrsiddharth2020-11-081-0/+2
|
* update mainrsiddharth2020-09-061-0/+2
| | | | * cryptopals.go (main): Add handling to run challenge 6.
* challenge: do challenge 6rsiddharth2020-09-061-0/+122
| | | | * challenge/c06.go: Implement challenge 6.
* lib: AlphaScore -> AlphaPunchScorersiddharth2020-09-061-1/+1
| | | | | * lib/str.go (AlphaScore): Rename to... (AlphaPunchScore): ...this.
* lib: isAlpha -> isAlphaPunchrsiddharth2020-09-061-2/+3
| | | | | | * lib/str.go (isAlpha): Rename to... (isAlphaPunch): ...this. (AlphaScore): change isAlpha call to isAlphaPunch call.
* lib: remove genKeyrsiddharth2020-09-061-14/+0
| | | | * lib/hamming.go (genKey): Remove function.
* lib: update KeySizeWithMinDistancersiddharth2020-09-061-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 KeySizeWithMinDistanceIterrsiddharth2020-09-061-15/+0
|
* lib: add BreakIntoBlocksrsiddharth2020-09-061-1/+1
| | | | * lib/blocks.go (BreakIntoBlocks): Fix typo -- 8 -> keysize.
* lib: update XORCrackSingleKeyrsiddharth2020-09-061-5/+5
| | | | | * lib/brute.go (XORCrackSingleKey): Simplify function; use FillBytes and FixedXORBytes
* lib: update isAlpharsiddharth2020-09-061-0/+6
| | | | * lib/str.go (isAlpha): Add common punctuation.
* lib: add FillBytesrsiddharth2020-09-061-0/+11
| | | | * lib/str.go (FillBytes): New function.
* lib: add FixedXORBytesrsiddharth2020-09-061-0/+12
| | | | * lib/xor.go (FixedXORBytes): New function.
* lib: add TransposeBlocksrsiddharth2020-09-061-0/+17
| | | | * lib/blocks.go (TransposeBlocks): New function.
* lib: add BreakIntoBlocksrsiddharth2020-09-061-0/+32
| | | | * lib/blocks.go (BreakIntoBlocks): New function.
* lib: add AlphaScorersiddharth2020-09-051-0/+10
| | | | * lib/str.go (AlphaScore): New function.
* lib: add isAlpharsiddharth2020-09-051-0/+10
| | | | * lib/str.go (isAlpha): New function.
* lib: move around stripSpaceCharsrsiddharth2020-09-052-15/+15
| | | | | * lib/b64.go (stripSpaceChars): Move to... * lib/str.go (stripSpaceChars): ...here.
* lib: add Base64ToBytesrsiddharth2020-09-051-0/+32
| | | | | | * lib/b64.go (Base64ToBytes): New function. lib/b64.go
* lib: add indexrsiddharth2020-09-051-0/+10
| | | | * lib/b64.go (index): New function.
* lib: add stripSpaceCharsrsiddharth2020-09-051-0/+15
| | | | * lib/b64.go (stripSpaceChars): New function.
* lib: add KeySizeWithMinDistanceIterrsiddharth2020-09-051-0/+14
| | | | * lib/hamming.go (KeySizeWithMinDistanceIter): New function.
* lib: add KeySizeWithMinDistancersiddharth2020-09-051-0/+23
| | | | * lib/hamming.go (KeySizeWithMinDistance): New function.
* lib: update HammingDistancersiddharth2020-09-051-1/+1
| | | | lib/hamming.go (HammingDistance): Change type of arguments to []byte.
* lib: add genKeyrsiddharth2020-09-051-0/+14
| | | | * lib/hamming.go (genKey): New function.
* lib: add HammingDistancersiddharth2020-09-041-0/+27
| | | | * lib/hamming.go (HammingDistance, setBits): New functions.
* LICENSE: ISC -> my namersiddharth2020-08-311-7/+8
|
* lib/hex.go: update ByteToHexStrrsiddharth2020-08-311-10/+10
| | | | * lib/hex.go (ByteToHexStr): Move around.
* lib: BytesToHexStr -> AsciiStrToHexStrrsiddharth2020-08-312-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 runningrsiddharth2020-08-301-1/+1
|
* README.md: update runningrsiddharth2020-08-301-2/+8
|
* README.md: remove building; update runningrsiddharth2020-08-301-10/+4
|
* README.md: update buildingrsiddharth2020-08-301-1/+1
|
* go.mod: go: change to 1.11rsiddharth2020-08-301-1/+1
|
* lib: update HexToBase64rsiddharth2020-08-301-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 5rsiddharth2020-08-304-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 licensersiddharth2020-08-301-0/+3
|
* README.md: update main blurbrsiddharth2020-08-301-2/+3
|
* challenge: do challenge 4rsiddharth2020-08-302-0/+365
| | | | | * challenge/c04.go: Implement challenge 4. * cryptopals.go (main): Add handling to run challenge 4.
* README.md: . -> , in main blurbrsiddharth2020-08-291-1/+1
|
* challenge: do challenge 3rsiddharth2020-08-295-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.rsiddharth2020-08-291-0/+1
|
* Makefile: fmt: remove -x switchrsiddharth2020-08-291-1/+1
|
* add README.mdrsiddharth2020-08-291-0/+22
|
* rename package enc -> hexrsiddharth2020-08-296-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 headerrsiddharth2020-08-291-0/+3
|
* challenge/c02.go: add license headerrsiddharth2020-08-291-0/+3
|
* challenge: do challenge 2rsiddharth2020-08-294-0/+45
| | | | | | | * challenge/c02.go: Challenge 2 snafu. * cryptopals.go: Add challenge 2. * enc/hex.go (DecToHexChar): New function. * enc/xor.go (FixedXOR): New function.