Skip to content

Instantly share code, notes, and snippets.

@jeffjohnson9046
Last active August 5, 2019 23:38
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeffjohnson9046/64a7f6ce9383e934fdcab880097ca3c4 to your computer and use it in GitHub Desktop.
Save jeffjohnson9046/64a7f6ce9383e934fdcab880097ca3c4 to your computer and use it in GitHub Desktop.
Use the Spring Cloud Config service to encrypt/decrypt an encrypted value
# Encrypt
curl -sbiL -X POST http://localhost:8888/encrypt -d '[the value you want to encrypt]'
# Decrypt
curl -sbiL -X POST http://localhost:8888/decrypt -d '[the encrypted value, without the "{cipher}" prefix]'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment