java-tutorials/spring-cloud-modules/spring-cloud-cli/encrypt.sh

8 lines
337 B
Bash

#!/usr/bin/env bash
echo Encrypting my_value as key my_key
spring encrypt my_value --key my_key
echo
echo You should see something like: c93cb36ce1d09d7d62dffd156ef742faaa56f97f135ebd05e90355f80290ce6b
echo
echo You can use: \"{cipher}c93cb36ce1d09d7d62dffd156ef742faaa56f97f135ebd05e90355f80290ce6b\" in your configuration files
echo