This recipe teaches us how to create a truly secure strong hash and how to strengthen it as computers becomes more capable of breaking it.
There are libraries that provide secure hash functionality, but we are going to use a standard, plain java algorithm named
PBKDF2WithHmacSHA1. So, we won't need any third-party libraries.
To create the first hash (Sign up), follow the given steps:
To generate a strong hash, please consider the code shown in the following screenshot:
We can test it by running the code shown in ...