Encryption

Encryption Service

API specs to encrypt, decrypt, sign and verify data.

Decrypts the given input value/s OR values of the object.

post
Bodyobject[]
object[]Optional
Responses
chevron-right
200

The response to a decryption request will have the same structure as the input.

application/json
object[]Optional
post
/crypto/v1/_decrypt
200

The response to a decryption request will have the same structure as the input.

Provide signature for a given value.

post
Body

A Sign request containing tenant id and the string value to be signed.

tenantIdstringOptional

The key used for signing will be determined based on tenant id.

valuestringOptional

The value to be signed.

Responses
chevron-right
200

Response contains the value that has been signed and the value of signature.

application/json

Response to sign api containing the actual value and its corresponding signature.

valuestringOptional

The value that came with request.

signaturestringOptional

The signature generated for the above value.

post
/crypto/v1/_sign
200

Response contains the value that has been signed and the value of signature.

Check if the signature is correct for the provided value.

post
Body

A Verify request containing the value and its corresponding signature.

valuestringOptional

The claim to be verified

signaturestringOptional

The signature for the claim

Responses
chevron-right
200

Response returns if the provided signature is correct for the given value.

application/json

Response to the verify api containing if the signature was correct for the input claim

verifiedbooleanOptional

This will be true if the signature is correct according to the claim, otherwise false.

post
/crypto/v1/_verify
200

Response returns if the provided signature is correct for the given value.

Deactivate the keys for the given tenant and generate new keys. It will deactivate both symmetric and asymmetric keys for the provided tenant.

post
Body

A request to rotate key for a given tenant

tenantIdstringOptional

The tenantId for which the key needs to be changed.

Responses
chevron-right
200

Acknowldgement if the operation was successful.

application/json

An acknowledgement if the key rotation request was successful.

acknowledgedbooleanOptional

Acknowledgement if the operation was successful.

post
/crypto/v1/_rotatekey
200

Acknowldgement if the operation was successful.

cryptoRotateAllKeys

post
Body

A request to rotate key for a given tenant

tenantIdstringOptional

The tenantId for which the key needs to be changed.

Responses
chevron-right
200

OK

*/*

An acknowledgement if the key rotation request was successful.

acknowledgedbooleanOptional

Acknowledgement if the operation was successful.

post
/crypto/v1/_rotateallkeys

Last updated

Was this helpful?