we-coffee logo
 
Skip Navigation LinksHome | Bonnie.NET | Demos | Hash Generation Demo

Hash and HMAC Generation with Bonnie.NET

This web page shows how to use Bonnie.NET Standard Edition .NET cryptographic API for hash and keyed hash (HMAC) generation of texts.

Try Bonnie.NET functionalities by following the next steps:

1. Choose the hash and the keyed hash algorithms

Choose the hash algorithm and the keyed hash algorithm to use. Both hash and keyed hash will be generated showing the differences among the two.

2. Generate a cryptograhic key

Choose a method for strong cryptographic key generation to use with keyed hash algorithm. You can insert a password or allow Bonnie.NET to generate a strong key. If you choose to insert a password, Bonnie.NET will use PKCS#5 (RFC2898) standard to generate a secure cryptographic key.

Generate with Bonnie.NET

3. Create the hash and the keyed hash

Insert some lines of text in the following box and click hash.

Text to Hash

The hashes created will appear in the following boxes:

Hashed Text
Keyed Hashed Text

4. Verify the generated hashes

Click verify to verify the previous generated hashes.

Hash:

Keyed Hash:

As you notice, hash act as a sort of fingerprint of information inserted and it is independent from the user that generated it. Infact, another user, different from you, can generate the same hash of the same text you have chosen.

With keyed-hash you can generate a fingerprint of information that can be verified only by you, being the only one that has the key used to generate the keyed-hash itself.

Bonnie.NET can perform, in the same easy way, hash generation of bytes arrays and streams (for example files) too. For more details, download Bonnie.NET Standard Edition and try the examples contained on the setup.

 
up up