![]() |
Introduction to Bouncy Castle APIs
The Bouncy Castle Crypto APIs is a set of implementations of cryptographic concepts and algorithms. Bouncy Castle APIs are developed in both Java and C#. These APIs can be freely downloaded from the Bouncy Castle home page.
Let us have a glance at some of the important type of implementations and algorithms provided by BC APIs - Digests Digests are the hash values which are generated after applying a hash algorithm on message. Digests are also known as Hash Value, fingerprints, checksums, etc. Bouncy castle APIs provide us, implementation of following hash algorithms –
X509 is a standard, which specifies the standard format for public key certificates, Certificate revocation list and attribute certificates. Bouncy Castle APIs include the implementation for generators, parsers for Version1 and Version3 certificates, Version 2 CRLs and attribute certificates. It provides the classes for X509 formats, also, e.g. PEM, p12, pfx etc. Following are some of the important X509 related classes, provided by Bouncy Castle –
There are many instances when data should be encrypted by the passphrase or password provided by the user. This secret password selected by the user acts like the encryption key. This is unlike the situation in which the keys are generated by the system itself. However, there are steps to be followed for generating or deriving the key from the password selected by the user.
Signature are applied to digital data to verify that the data is not tampered during transmission and also, that the data has been sent by the correct authority or person. In signature mechanism, the hash value of the message is computed, using the Hash algorithms like MD2, MD5 etc. This hashed value is used by the signature algorithm to generate the digital signature. Note: - for signing, the private key is needed by the algorithm. The digital signature is sent along with the message. Following implementation are provided by the Bouncy castle apis-
Following secret key algorithm are implemented –
Following asymmetric key algorithm are implemented -
In my next article, we will discuss the RSA implementation provided by Bouncy castle. |
Re: Introduction to Bouncy Castle APIs
Hi Sbh, i really appreciate your tutorials about the Bouncy Castle API. You really saved my life Man =)
In my C# project i have to use external cryptographic library, so i found the OpennSSL(crypto) and BouncyCastle but they quickly caused me headaches lol. Please, i need to hash a byte[] with md5 and SHA, can you show me how ? thanks for any help man =) i really appreciate your articles. |
Re: Introduction to Bouncy Castle APIs
Could you make an example about importing RSA keys from file and how to save them, thx
|
| All times are GMT +5.5. The time now is 00:12. |