KSC Open API
Kaspersky Security Center API description
binary DataProtectionApi::ProtectUtf16StringGlobally ( wstring  szwPlainText)

Protects sensitive data to store in policy, global/group task, Administration Server settings.

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

The same as Tasks::ProtectPassword

Parameters:
szwPlainText(wstring) [in] plainText
Returns:
(binary) Ciphertext
See also:
Sample. Creates and finds an internal user.