cwDecrypt

Description

Decrypt the given encrypted value

URI

/cwDecrypt?keyContext=:keyContext &cipherText=:cipherText &type=:type&tweak=:tweak

Method

GET

URL Params:

 Name

Required              Description                                                          Default Value                Example
keyContext Required Key Context to be used for this encryption Empty String KeyRing1-Key1
cipherText Required  Encrypted Text Empty String Ykashdbas
type Required  Entity Type   PERSON_NAME_NICE
tweak                Required  Tweak string for the encryption Empty String 1234

Response Codes

200 - Success  

400 - Bad Request 

401 - Unauthorized

Example Request

https://localhost:8080/cwDecrypt?keyContext=BigRing-BigKey-1.0&cipherText=Ykashdbas&type=PERSON_NAME_NICE&tweak=123456

Example Response

John