KSC Open API
Kaspersky Security Center API description
KeyService::EncryptData ( binary  pData,
[out] binary  pEncryptedData 
)

Method creates crypto container.

Parameters:
pData[in] (binary) Data to encrypt (Max size is 512 KB).
pEncryptedData[out] (binary) Encrypted data (Crypto container format).