Back to product page

Type property


Selects the algorithm to be used for encryption, decryption, digest, etc...

Type

A CryptoTypes enumeration. Type of algorithm to use to encrypt/decrypt/hash/sign/verify data.

Syntax

  • Basic
object.Type [= value]
The Type(object,value) syntax has these parts:
objectAn expression evaluating to an object of type wodCrypt.
valueA CryptoTypes enumeration, as described in settings.

Remarks

Constant Value Description
DES0 DES
TripleDES 1 TripleDES.
AES 2 AES.
AES192 3 AES192.
AES256 4 AES256.
Blowfish 5 Blowfish.
Cast 6 Cast.
RC2 7 RC2.
RC4 8 RC4.
RC5 9 RC5.
UNIXcrypt 10 UNIX crypt command.Often referred as crypt(1).
UNIXcrypt3 11 UNIX crypt C function. Often referred as crypt(3).
MD5 100 MD5.
SHA1 101 SHA1.
SHA256 102 SHA256.
SHA512 103 SHA512.
SHA384 104 SHA384.
CRC16 105 CRC16.
CRC32 106 CRC32.
RSA 1000 RSA (RSA+MD5 if digest is needed, such as in Sign/Verify).
DSA 1001 DSA (DSA+MD5 if digest is needed, such as in Sign/Verify).
RSA+SHA1 1101 RSA+SHA1.
DSA+SHA1 1102 DSA+SHA1.
None 65535 No encryption involved. Data is just passed to output blob. Can be used for compression on the fly.


The Type property places an algorithm in scope, to be used with next wodCrypt method. For example, if you want to encrypt data using the AES protocol, you must set

Type = AES

before you perform the encryption.

Even though all supported algorithms are listed in the Type property, not all can be used with every wodCrypt method. For example, you cannot create a hash value using AES - because AES is a symmetric algorithm used for encrypting and decrypting blocks of data. If you try to do this, an error will be generated.

Platforms

Windows