About Spring Boot CLI 3.1.4 when is executed the ./spring --help encodepassword command appears:
./spring --help encodepassword
spring encodepassword - Encode a password for use with Spring Security
usage: spring encodepassword [options] <password to encode>
Option Description
------ -----------
-a, --algorithm <String> The algorithm to use (default: default)
examples:
To encode a password with the default encoder:
$ spring encodepassword mypassword
To encode a password with pbkdf2:
$ spring encodepassword -a pbkdf2 mypassword
Two things to consider:
- About default: default is really
BCrypt(I think it should be updated) - Should be listed all the possible valid values for
-a/--algorithm
The improvements of both should be applied for the command's output and Reference documentation.
Thanks for your understanding
Comment From: mhalbritter
Now looks like this:
spring encodepassword - Encode a password for use with Spring Security
usage: spring encodepassword [options] <password to encode>
Option Description
------ -----------
-a, --algorithm <String> The algorithm to use. Supported algorithms: default,
bcrypt, pbkdf2. The default algorithm uses bcrypt
(default: default)
examples:
To encode a password with the default (bcrypt) encoder:
$ spring encodepassword mypassword
To encode a password with pbkdf2:
$ spring encodepassword -a pbkdf2 mypassword
Comment From: manueljordan
Thanks for the quick update ... I assumed that for legacy support MD5 and SHA256 were possible too. Interesting.