KSC Open API
Kaspersky Security Center API description
binary DataProtectionApi::ProtectUtf16StringForHost ( wstring  szwHostId,
wstring  szwPlainText 
)

Protects sensitive data for the specified host (to store in its local settings or a local task)

Protects the specified text as UTF16 string encrypted with the key of the specified host.

Parameters:
szwHostId(wstring) [in] host name
szwPlainText(wstring) [in] plainText
Returns:
(binary) Ciphertext
See also: