cwEncrypt

Description  

Encrypt the given data

URI  

/cwEncrypt?keyContext=:{keyContext} &plainText={plaintext} &type={type}&tweak={tweak}

Method                               

GET

URL Parameters:                                                                                                       

Name

Required             

Description                                                          

Default Value                  

Example

keycontext

Required

Key Context to be used for this encryption

Empty String

KeyRing1-Key1

plainText

Required 

Plain Text to be encrypted

Empty String

John Bogle

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://hostname:8080/cwDecrypt?keyContext=BigRing-BigKey-1.0&cipherText=Ykashdbas&type=PERSON_NAME_NICE&tweak=123456

Example Response

               Ovud Njsakl