crypto challenges made fun
Chipping away at em', work in progress...
Indeed there is overlap between the challenges and one could build a standard lib. But, instead, I wanted each challenge to be its own contained unit.
go get -u github.com/mfridman/cryptopals/...
# assuming you are in your GOPATH
cd src/github.com/mfridman/cryptopals/set-1/chal-6
go run main.go
- solution ........ Convert hex to base64
- solution ........ Fixed XOR
- solution ........ Single-byte XOR cipher
- solution ........ Detect single-character XOR
- solution ........ Implement repeating-key XOR
- solution ........ Break repeating-key XOR
- AES in ECB mode
- Detect AES in ECB mode
func factorial(n uint64) uint64 {
if n > 0 {
result := n * factorial(n-1)
return result
}
return 1
}