Skip to content

Instantly share code, notes, and snippets.

@sandipchitale
Last active July 21, 2023 19:23
Show Gist options
  • Save sandipchitale/bcbf14ff585656b57a8c05918c8ca25b to your computer and use it in GitHub Desktop.
Save sandipchitale/bcbf14ff585656b57a8c05918c8ca25b to your computer and use it in GitHub Desktop.
spring encodepassword -a bcrypt somepassword #springcli #encodepassword
> 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment