Encrypt Data
post
/services/{version}/enckeys/{keyName}/encrypt
Encrypt data using the Encryption Key.
Request
Supported Media Types
- application/json
Path Parameters
-
keyName: string
Minimum Length:
1Maximum Length:24Pattern:^[A-Za-z_$][A-Za-z0-9_$]*$The name of the Encryption Key.
-
version: string
Oracle GoldenGate Service API version.
Allowed Values:[ "v2" ]
Root Schema : Oracle GoldenGate Encryption Request
Type:
objectTitle:
Oracle GoldenGate Encryption RequestThis schema describes data to be AES encrypted
Show Source
-
$schema:
Allowed Values:
[ "ogg:encryptRequest" ] -
data:
string
Minimum Length:
1Maximum Length:4096Data to be encrypted -
encoding:
Default Value:
legacyAllowed Values:[ "legacy" ]Encoding to use for encrypted data in response
Example Request (application/json)
{
"data":"plaintext-password"
}
Response
Supported Media Types
- application/json
200 Response
Data encrypted successfully.
Root Schema : Oracle GoldenGate Encryption Result
Type:
objectTitle:
Oracle GoldenGate Encryption ResultThis schema describes encrypted data
Show Source
-
$schema:
Allowed Values:
[ "ogg:encryptResult" ] -
encrypted:
string
Minimum Length:
0Maximum Length:8192Encrypted data
Example Response (application/json)
{
"$schema":"api:standardResponse",
"links":[
{
"href":"http://localhost:11001/services/v2/enckeys/superkey/encrypt",
"mediaType":"application/json",
"rel":"canonical"
},
{
"href":"http://localhost:11001/services/v2/enckeys/superkey/encrypt",
"mediaType":"application/json",
"rel":"self"
}
],
"messages":[
],
"response":{
"$schema":"ogg:encryptResult",
"encrypted":"AADAAAAAAAAAAASAEGBBIFACVDXAYBBAXBJCOCQGREHABDJFSGTJZEBDXHUISIHJSCRJXFGHYEYGNJSGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
}
}