summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* 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.
* enc: fromHexChar -> HexCharToDecrsiddharth2020-08-292-15/+19
| | | | | * enc/b64.go (fromHexChar): Move and rename this function to... * enc/hex.go (HexCharToDec): ...this.
* challenge/c1.go -> challenge/c01.gorsiddharth2020-08-291-0/+0
|
* .gitignore: remove bin; add cryptopalsrsiddharth2020-08-291-1/+1
|
* cryptopals.go: add license blockrsiddharth2020-08-291-0/+3
|
* Makefile: add cleanrsiddharth2020-08-291-0/+4
|
* Makefile: remove binrsiddharth2020-08-291-2/+0
|
* Makefile: fmt: add challenge packagersiddharth2020-08-291-1/+1
|
* Makefile: update buildrsiddharth2020-08-291-2/+2
|
* add cryptopals.gorsiddharth2020-08-291-0/+21
|
* c1.go -> challenge/c1.gorsiddharth2020-08-291-2/+2
|
* enc: update HexToBase64rsiddharth2020-08-291-1/+3
| | | | Ensure lines are < 80 columns
* enc/b64.go: fromHexChar: update doc stringrsiddharth2020-08-261-1/+1
|
* add LICENSErsiddharth2020-08-263-0/+20
|
* c1.go: Challenge 1rsiddharth2020-08-261-0/+13
|
* Add Makefilersiddharth2020-08-261-0/+10
|
* Add .gitignorersiddharth2020-08-261-0/+1
|
* enc/b64.go: flesh it outrsiddharth2020-08-261-0/+31
|
* initial commitrsiddharth2020-08-222-0/+3