CAPICOM Reference (Windows)
The CAPICOM COM client provides services that enable application developers to add security based on cryptography to applications. CryptoAPI includes functionality for authentication using digital signatures, for enveloping messages, and for encrypting and decrypting data.
Note: CAPICOM is available for use in the following operating systems: Windows Server 2008, Windows Vista, Windows XP, Windows Me, Windows 2000, and Windows 98. It may be altered or unavailable in subsequent versions. Instead, use the .NET Framework to implement security features.
Utilities Object - Method:
The Utilities object defines the following methods.
Base64Decode Decodes a string from base64.
Base64Encode Encodes a string as base64.
BinaryStringToByteArray Converts a binary-packed string to an array of bytes.
BinaryToHex Converts a binary-packed string to a hexadecimal string.
ByteArrayToBinaryString Converts an array of bytes to a binary-packed string.
GetRandom Generates a secure random number.
HexToBinary Converts a hexadecimal string to a binary-packed string.
LocalTimeToUTCTime Converts the computer's local time to UTC.
UTCTimeToLocalTime Converts UTC to the computer's local time.
Remarks
The Utilities object can be created, and it is safe for scripting. The ProgID for the Utilities object is CAPICOM.Utilities.1.
No comments:
Post a Comment