Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kevindew/cryptopals
Trying to learn some crypto
https://github.com/kevindew/cryptopals
Last synced: 20 days ago
JSON representation
Trying to learn some crypto
- Host: GitHub
- URL: https://github.com/kevindew/cryptopals
- Owner: kevindew
- Created: 2017-01-31T22:24:08.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-02-19T17:28:29.000Z (over 7 years ago)
- Last Synced: 2024-10-05T01:41:18.890Z (about 1 month ago)
- Language: Ruby
- Size: 64.5 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ruby resources for [Cryptopals](https://cryptopals.com/)
I'm trying to fill in my knowledge gaps with cryptography by working through
the [cryptopal](https://cryptopals.com/) challenges. This repo contains
resources to work on the problems.Usage in irb:
```
irb(main):001:0> load "./crypto.rb"
=> true
irb(main):002:0> Crypto.bytes_to_base64(Crypto.hex_to_bytes("49276d206b696c6c696e6720796f757220627261696e206c696b65206120706f69736f6e6f7573206d757368726f6f6d"))
=> "SSdtIGtpbGxpbmcgeW91ciBicmFpbiBsaWtlIGEgcG9pc29ub3VzIG11c2hyb29t"
```Note - if you are doing these challenges yourself you should work these out
yourself rather than using this code.