An open API service indexing awesome lists of open source software.

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

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/).