Encrypt the string

get

/PASService/rest/services/v1/encryptionService

Encrypts the specified string.

Request

Query Parameters

There's no request body for this operation.

Back to Top

Response

200 Response

This operation has encrypted the string successfully.
Back to Top

Examples

This example describes how to encrypt the string.

Example cURL Command

Use the following cURL command to submit a request on the REST resource:

curl \
     -X GET \
     -H "Content-Type: application/json" \
     -u 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \ 
     -L "http://server:port/PASService/rest/services/v1/encryptionService?plainText=test"

Example Response Body

The following shows an example of the response body in JSON format:

{
  "encrptedText": "ekZKsfB2/BKkONz2shNsUA==""
}
Back to Top