Returns (Task<byte[]>)
These methods will either encrypt or decrypt an array of bytes. These are generally used when an image is involved or secure data. (Two Factor Authentication or Alarm Acknowledgment)
Name | Description |
---|---|
data |
Example in C#
// Returns: Byte
var item = await client.DecryptData(Byte data);
Example in CURL
curl -X POST \
https://api.us.acresecurity.cloud/api/currentuser/decrypt \
-H 'Authorization: Bearer TOKEN_GOES_HERE' \
-H 'Content-Type: application/json' \
-D '{
"$type":"System.Byte[], mscorlib",
"$value":"AA=="
}'