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:
ProvidersTest
: A demo of how JCE uses crypto providers and how external providers can be addedHashingTest
: A demo of creating and validating crypto hash. Also includes an example of MD5 collisionEncryptionTest
: Includes example of symmetrical and asymmetrical encryption and decryptionKeystoreAndKeysTest
: 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.DigitalSignatureTest
: Shows how PKCS1 and PKCS7 digital signatures can be generated and verified.