Skip to content

A project with cryptography examples in Java using Bouncy Castle library

Notifications You must be signed in to change notification settings

vivekkr12/java-cryptography-demos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.