问题
I am trying to encrypt a password using Spring boot CLI (1.5.7).
./spring encrypt mysecret --key ashish
I am getting below error for this command:
'encypt' is not a valid command. See 'help'.
Please let me know how to fix this.
回答1:
Actually encrypt and decrypt comes with Spring Cloud CLI so below command will get you these commands
./spring install org.springframework.cloud:spring-cloud-cli:1.3.2.RELEASE
But now I am getting different error "Unable to initialize due to invalid secret key"
Anyone any ideas ?
来源:https://stackoverflow.com/questions/51626320/getting-error-encypt-is-not-a-valid-command-while-trying-to-encrypt-using-sp