https://github.com/berkbavas/cryptostuff
Cryptographic algorithms and attacks in Java 8
https://github.com/berkbavas/cryptostuff
cbc-mode close-primes cryptanalysis cryptography fermat-factorization four-square miller-rabin-test monoalphabetic-cipher pkcs1 playfair-cipher rsa rsa-pkcs1-padding vigenere-cipher
Last synced: about 5 hours ago
JSON representation
Cryptographic algorithms and attacks in Java 8
- Host: GitHub
- URL: https://github.com/berkbavas/cryptostuff
- Owner: berkbavas
- Created: 2021-11-05T22:08:06.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-09-14T23:03:31.000Z (almost 2 years ago)
- Last Synced: 2025-01-05T13:11:04.770Z (over 1 year ago)
- Topics: cbc-mode, close-primes, cryptanalysis, cryptography, fermat-factorization, four-square, miller-rabin-test, monoalphabetic-cipher, pkcs1, playfair-cipher, rsa, rsa-pkcs1-padding, vigenere-cipher
- Language: Java
- Homepage:
- Size: 1.3 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CryptoStuff
This project implements various cryptographic algorithms and attacks in **Java 8**.
## Features
- **Algorithms**
- Asymmetric Cipher:
- RSA with PKCS1 v1.5 Padding
- Traditional Ciphers:
- Four Square
- Monoalphabetic
- Playfair
- Vigenere
- **Attacks**
- CBC Padding Oracle Attack
- RSA Attacks:
- Fermat Factorization
- Miller Factorization
- Kindle Signature Forgery
- Signature Without Padding
- Close Primes
- Attacks on Traditional Ciphers:
- Four Square
- Monoalphabetic
- Playfair
- Vigenere
## Getting Started
Compile the project:
```sh
mvn compile
```
Run tests:
```sh
mvn test
```
## Tests
Unit tests are provided for all implemented algorithms and attacks. See the `test/` directory for details.
## License
This project is licensed under the [MIT License](LICENSE).
## Acknowledgements
Attacks on traditional ciphers are based on solutions from [Practical Cryptography](http://practicalcryptography.com/cryptanalysis/).