Add algorithm prefix to encoded password

Update the CLI encodepassword command to also include the algorithm
prefix.

Closes gh-11875
This commit is contained in:
Phillip Webb
2018-02-01 13:06:25 -08:00
parent 1e3bae9ba2
commit c8257b38a2
2 changed files with 8 additions and 7 deletions

View File

@@ -100,7 +100,7 @@ public class EncodePasswordCommand extends OptionParsingCommand {
.collectionToCommaDelimitedString(ENCODERS.keySet()));
return ExitStatus.ERROR;
}
Log.info(encoder.get().encode(password));
Log.info("{" + algorithm + "}" + encoder.get().encode(password));
return ExitStatus.OK;
}