https://github.com/samply/encryption-api
https://github.com/samply/encryption-api
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/samply/encryption-api
- Owner: samply
- Created: 2022-01-24T12:38:40.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2023-02-15T09:53:40.000Z (almost 3 years ago)
- Last Synced: 2024-12-30T07:14:12.282Z (about 1 year ago)
- Language: Java
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# encryption-api
Base URL for all encryption commands: http://localhost:8080/encryption
If you are using POST to upload a string to the Encryption suite (e.g. a key),
you will need to wrap it in a little piece of JSON. E.g. to send the string "foo",
you will need:
{"string":"foo"}
If you are POSTing a key which itself is JSON, you will need to turn off the
internal double-quotes:
{"string":"{\"primaryKeyId\":1021111201,\"key\":[{\"keyData\":{\"typeUrl\":\"type.googleapis.com/google.crypto.tink.EciesAeadHkdfPublicKey\",\"keyMaterialType\":\"ASYMMETRIC_PUBLIC\",\"value\":\"EkQKBAgCEAMSOhI4CjB0eXBlLmdvb2dsZWFwaXMuY29tL2dvb2dsZS5jcnlwdG8udGluay5BZXNHY21LZXkSAhAQGAEYARogBHg818YW2ri5bKlGGKFP3TuETSsoGiOaP28jFX8CPe4iIHRg2ZiIVonJ98dUNAKnvbvRJmMAqldcGvnpCbqbQ+Sl\"},\"outputPrefixType\":\"TINK\",\"keyId\":1021111201,\"status\":\"ENABLED\"}]}"}