For AI agents: the complete documentation index is available at /data-protector/en/llms.txt, the full documentation bundle is available at /data-protector/en/llms-full.txt, and this page is available as Markdown at /data-protector/en/api.md.

API

DataProtector

Encrypt

Returns the result of compressing and then encrypting the data.

byte[] DataProtector.Encrypt(byte[] data, string key);

Decrypt

Returns the result of decrypting and then decompressing the data.

byte[] DataProtector.Decrypt(byte[] data, string key);

HashChecker

ComputeHash

Extracts the hash value of the encrypted data.

string HashChecker.ComputeHash(byte[] data);

ValidateHash

Compares two hash values.

bool HashChecker.ValidateHash(string hashA, string hashB);