How to Generate Secure Password Using Hashing Algorithms in Java

Here we will see how to generate Secure Password Using Hashing Algorithms. We can use either SHA256 or MD5. Both SHA256 and MDA5 are hashing algorithms. This number is a checksum. There is no encryption taking place because an infinite number of inputs can result in the same hash value, although in reality collisions are rare. is the class which helps you to do this. Call getInstance(“MD5”) to get an MD5 message digest you can use.This MessageDigest class provides applications the functionality of a message digest algorithm, such as SHA-1 or SHA-256. Message digests are secure one-way hash functions that take arbitrary-sized data and output a fixed-length hash value.

SHA256 takes somewhat more time to calculate than MD5.

I hope above post will be really help you to generate the secure password using hashing algorithms. If you have any comment,please use the below comment section.


About mohan

This is Mohan Jayapalan author of TechPages Blog.I am a part time blogger and Currently working for private Software Concern.

© Copyright 2010-2016 · All Rights Reserved · Powered by WordPress ·