Skip to content

Instantly share code, notes, and snippets.

@gjyoung1974
Created June 12, 2017 00:02
Show Gist options
  • Save gjyoung1974/054425dbf2f64aeffc95708b19f0b11f to your computer and use it in GitHub Desktop.
Save gjyoung1974/054425dbf2f64aeffc95708b19f0b11f to your computer and use it in GitHub Desktop.
Detokenize a value
# Call the VGS proxy
# Argument $! is an FPE token value, result is clear text value
curl -s https://httpbin.verygoodsecurity.io/post -k \
-x {0}:{1}@{sometenant}.{environment}.verygoodproxy.com:8080 \
-H "Content-type: application/json" \
-d '{"CCN": "'$1'"}' | jq --raw-output '.data' | jq --raw-output '.CCN'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment