Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mfridman/cryptopals
My solutions for http://cryptopals.com, written entirely in Go, sprinkled with concurrency
https://github.com/mfridman/cryptopals
cryptography cryptopals go golang
Last synced: about 1 month ago
JSON representation
My solutions for http://cryptopals.com, written entirely in Go, sprinkled with concurrency
- Host: GitHub
- URL: https://github.com/mfridman/cryptopals
- Owner: mfridman
- Created: 2017-10-06T22:06:59.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-10-11T03:30:47.000Z (about 7 years ago)
- Last Synced: 2024-06-19T15:11:48.470Z (5 months ago)
- Topics: cryptography, cryptopals, go, golang
- Language: Go
- Homepage:
- Size: 25.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# [Cryptopals](https://cryptopals.com/) [![Report Card](https://goreportcard.com/badge/github.com/mfridman/cryptopals)](https://goreportcard.com/report/github.com/mfridman/cryptopals)
> 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.
## Usage
`go get -u github.com/mfridman/cryptopals/...`
```bash
# assuming you are in your GOPATH
cd src/github.com/mfridman/cryptopals/set-1/chal-6
go run main.go
```## Set 1: Basics
- [x] **[solution](set-1/chal-1)** ........ [Convert hex to base64](https://cryptopals.com/sets/1/challenges/1)
- [x] **[solution](set-1/chal-2)** ........ [Fixed XOR](https://cryptopals.com/sets/1/challenges/2)
- [x] **[solution](set-1/chal-3)** ........ [Single-byte XOR cipher](https://cryptopals.com/sets/1/challenges/3)
- [x] **[solution](set-1/chal-4)** ........ [Detect single-character XOR](https://cryptopals.com/sets/1/challenges/4)
- [x] **[solution](set-1/chal-5)** ........ [Implement repeating-key XOR](https://cryptopals.com/sets/1/challenges/5)
- [x] **[solution](set-1/chal-6)** ........ [Break repeating-key XOR](https://cryptopals.com/sets/1/challenges/6)
- [ ] [AES in ECB mode](https://cryptopals.com/sets/1/challenges/7)
- [ ] [Detect AES in ECB mode](https://cryptopals.com/sets/1/challenges/8)# Misc
```go
func factorial(n uint64) uint64 {
if n > 0 {
result := n * factorial(n-1)
return result
}
return 1
}
```