Thanks for the quick reply
As of now we use spring 2.5 across our company, hence i might need to write my own class
once thing i found out going by Bcrypt doc, looks like there is no way we can decrypt an encrypted string. The only method Bcrpyt provide is
BCrypt.checkpw(rawPass, encPass)
where you can pass the encPass and the rawPass and compare it and the result is true or false.
The reason i am asking this is when we store the password we do SHA hash encryption and then do Bcrypt encryption.
in order to do authentication, i have reverse the
pattern decrypt Bcrypt string and then decrypt SHA to get teh actual value.
Looks like i cant use multiple encryption and the only reason we did was for enhanced security and also we had already user password already stored in SHA hash. so we dont want to convert them to plain text and apply Bcrypt encryption.
i hope i was able to explain correctly.
Thanks