Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 1.34 KB

README.md

File metadata and controls

13 lines (9 loc) · 1.34 KB

Cryptography with Java

This project contains samples on how to do cryptographic operations in Java using the BouncyCastle libray.

These classes are not actual tests, its just a convinient way to run individual methods in an IDE

This is what you can expect to find the included classes:

  1. ProvidersTest: A demo of how JCE uses crypto providers and how external providers can be added
  2. HashingTest : A demo of creating and validating crypto hash. Also includes an example of MD5 collision
  3. EncryptionTest : Includes example of symmetrical and asymmetrical encryption and decryption
  4. KeystoreAndKeysTest : Demonstartes how crypto keys are generated and written into a keystore as well as accessed from different keystores. Includes samples of creating keystores, genrating X509 certificates and certificate chains, generating CSR and signing issued certificate with root certificate.
  5. DigitalSignatureTest : Shows how PKCS1 and PKCS7 digital signatures can be generated and verified.