Search code examples
spring-cloud-config

Spring Cloud config server encryption decryption


I am using the below command to encryot the password. curl -H "Content-Type: text/plain" lonrs03668:8888/encrypt -d Simple12$jedi

after decryting the password, the value after $ sign getting lost and it is only returning the Simple12.

The issue is that if string contains the $ sign it is not encrypting/decrypting correctly.


Solution

  • Below is working for me by adding \ before $ .

    curl -u root:s3cr3t -H "Content-Type: text/plain" lonrs03668:8888/encrypt --data-ascii Simple12\$jedi.