IAPI::EncryptString

method EncryptString.

Encodes or decodes a regular C-String (ASCII or binary with 0 character) with a custom password.

 

HRESULT EncryptString(
  long stringData,
  long stringDataSize,
  BSTR Password,
);

Parameters

stringData

[in] .   Pointer to C-String data (ASCII or binary)

stringDataSize

[in] .   Size of C-String data (ASCII or binary)

Password

[in,defaultvalue("P@SSPORT_2324")] . Password for encoding/decoding

 

Return Values

S_OK

The operation was successfull.

E_POINTER

A NULL pointer was supplied as an argument.

E_UNEXPECTED

An unexpected error occoured.

See Also

IAPI