Computes the raw base64 encoded password digest, without the algorithm tags.
Syntax
String
getRawEncodedPassword
(
char[]
password
,
byte[]
salt
,
String
algorithm
) throws NoSuchAlgorithmException, IOException
Parameters
-
password –
clear text password to encode
-
salt –
salt to be used for encoding
-
algorithm –
algorithm to use for computing the password digest.
Exceptions
-
NoSuchAlgorithmException –
if the specified algorithm is not valid.
-
IOException –
if an error is encountered in obtaining the base64 string of the computed password digest.