KSC Open API  13.1
Kaspersky Security Center API description
binary Tasks::ProtectPassword ( wstring  strPassword)

Encrypt an account password.

Encrypts account password to push as "klprts-TaskAccountPassword" attribute. See List of deployment task attributes

The same as DataProtectionApi::ProtectUtf16StringGlobally

Parameters:
strPassword(wstring) password to protect
Returns:
(binary) Encrypted password
See also:
DataProtectionApi::ProtectUtf16StringGlobally