Note: This product has been replaced by "Chilkat Crypt". Chilkat continues to maintain support for existing customers.
AES Interop functionality is now available in the Chilkat Crypt component.
.NET Encryption Component
Encryption ActiveX Component
Ruby Encryption Library
Python Encryption Library
Perl Encryption Library
Java Encryption Component
Encryption C++ Library

AES
Encryption with the Flexibility to Interoperate
with Other AES Encryption Software and Systems.
Reference
Properties
- CipherMode
As Long read/write
- The AES cipher
mode:
0 = CBC (Cipher Block Chaining). This is the default.
1 = ECB (Electronic Cookbook).
CBC is more secure, while ECB is higher-performance.
[top]
- InitVector
As Variant read/write
- Should be set
to a byte array of exactly 16 bytes. If unset, the IV is effectively
all 0's. Both the encryptor and decryptor must use the same
initialization vector for decryption to be successful. [top]
- KeyLength
As Long read/write
- Determines the
size in bits of the secret key, and can be 128, 192, or 256..[top]
- PaddingScheme
As Long read/write
- The AES (Rijndael)
encryption algorithm pads encrypted data to a multiple of 16
bytes. This determines what padding scheme is used. Possible
values are:
0 = RFC 1423 padding scheme: Each padding byte is set to the
number of padding bytes. If the data is already a multiple of
16 bytes, 16 additional bytes are added, each having the value
0x10. (This is the default padding scheme)
1 = FIPS81 (Federal Information Processing Standards 81) where
the last byte contains the number of padding bytes, including
itself, and the other padding bytes are set to random values.
2 = Each padding byte is set to a random value. The decryptor
must know how many bytes are in the original unencrypted data.
[top]
- PassPhrase
As String read/write
- Setting the PassPhrase
also sets the SecretKey property according to the current value
of the PassPhraseAlg. The PassPhrase property does not need
to be set if the SecretKey is directly set by the application.[top]
- PassPhraseAlg
As Long read/write
- This selects the
Pass-Phrase-To-Secret-Key algorithm. Currently, the only possible
value is 0 to provide compatibility with the Chilkat Crypt ActiveX
Component. Additional conversions will be added on an as-needed
basis in the future.[top]
- SecretKey
As Variant read/write
- A byte array of
exactly 16, 24, or 32 bytes depending on whether the KeyLength
is 128, 192, or 256 bits.[top]
- Version
As String read-only
- The version of
the component such as "1.0.0".[top]
Methods
- Decrypt(
data As Variant ) As Variant
- Decrypts data using
the Rijndael (AES) encryption algorithm according to all the
property settings. If the settings are not the same as used
with encryption, the data returned will be garbled binary data.[top]
-
- Encrypt(
encryptedData
As Variant ) As Variant
- Encrypts data using
the Rijndael (AES) encryption algorithm according to all the
property settings.[top]
- BZip2(
data
As Variant ) As Variant
- Compresses data
using the BZip2 compression algorithm. [top]
- BUnzip2(
compressedData
As Variant ) As Variant
- Decompresses data
that was previously compressed by calling BZip2.[top]
- Haval(
data
As Variant, bitLength as Long ) As Variant
- Computes a 1-way
hash using the HAVAL algorithm. The bitLength can be specified
to be 128, 160, 192, 224, or 256 bits, and this is the number
of bits in the output byte array. [top]
- Md2(
data
As Variant ) As Variant
- Computes a 1-way
hash using the MD2 algorithm. The output is a byte array of
exactly 128 bits (16 bytes).[top]
- Md5(
data
As Variant ) As Variant
- Computes a 1-way
hash using the MD5 algorithm. The output is a byte array of
exactly 128 bits (16 bytes)[top]
- Sha160(
data
As Variant ) As Variant
- Computes a 1-way
hash using the SHA160 (also known as SHA-1) algorithm. The output
is a byte array of exactly 160 bits (20 bytes)[top]
- Sha256(
data
As Variant ) As Variant
- Computes a 1-way
hash using the SHA256 algorithm. The output is a byte array
of exactly 256 bits (32 bytes)[top]
- Sha384(
data As Variant ) As Variant
- Computes a 1-way
hash using the SHA384 algorithm. The output is a byte array
of exactly 384 bits (48 bytes)[top]
- Sha512(
data
As Variant ) As Variant
- Computes a 1-way
hash using the SHA512 algorithm. The output is a byte array
of exactly 512 bits (64 bytes) [top]
- DecodeFromBase64(
str As String ) As Variant
- Decodes from a
Base64 string to the original data.[top]
- DecodeFromHex(
str
As String ) As Variant
- Decodes from a
hexidecimal string to the original data.[top]
- DecodeFromQP(
str
As String ) As Variant
- Decodes from a
quoted-printable string to the original data. [top]
- EncodeToBase64(
data As Variant ) As String
- Converts any kind
of data (binary or text) to a Base64 string. [top]
- EncodeToHex(
data
As Variant ) As String
- Converts any kind
of data (binary or text) to a hexidecimal string. [top]
- EncodeToQP(
data
As Variant ) As String
- Converts any kind
of data (binary or text) to a quoted-printable string. [top]
-
- IsUnlocked(
) As Long
- Returns 1 if the
component has already been unlocked, otherwise returns 0.[top]
- UnlockComponent(
unlockCode
As String )
- Unlocks the component.
This must be called once before any other method, and will accept
either a 30-day unlock code or
a permanent (purchased) code. [top]
-
|
|
Privacy
Statement. Copyright 2000-2008 Chilkat
Software, Inc. All rights reserved.
Send feedback to support@chilkatsoft.com Components for Microsoft Windows XP, 2000, 2003 Server, Vista, and Windows 95/98/NT4.
|

Downloads
.NET 2.0
.NET 1.*
.NET x64
VC++ 6.0
VC++ 7.0
VC++ 8.0
Java
Ruby
Perl 5.8.*
Perl 5.10.*
Python
Bounce ActiveX
Charset ActiveX
Email ActiveX
FTP2 ActiveX
Crypt ActiveX
HTML-to-XML ActiveX
HTTP ActiveX
IMAP ActiveX
MHT ActiveX
MIME ActiveX
RSA ActiveX
Socket ActiveX
Spider ActiveX (free)
String ActiveX (free)
Tar ActiveX
Upload ActiveX (free)
XML ActiveX (free)
XMP ActiveX
Zip ActiveX
|