In this video, I have explained the process of hashing password so that it can be stored in a text file. Read more about hashing in https://en.wikipedia.org/wiki/Fingerp...)
For Library management system, I have used SHA256 hash. For implementing this, DigestUtils from Apache Commons is used. It allows to generate hash with just single line of code.
A cryptographic hash function is a fully defined, deterministic function which uses no secret key. It takes as input a message of arbitrary length (a stream of bits, any bits) and produces a fixed-size output. Output size depends on the function; it is 128 bits for MD5, 160 bits for SHA-1, 256 bits for SHA-256.
Apache DigestUtils : https://commons.apache.org/proper/com...
Get the source code from https://github.com/afsalashyana/Libra...
#SHA
#MD5
#JavaFX
Genuine Coder
http://www.genuinecoder.com/