Xceed Encryption Library Documentation
Xceed Hashing control reference / Properties / HashingMethod property
In This Topic
    HashingMethod property
    In This Topic

    Description

    The HashingMethod property allows you to specify or find out which hashing algorithm the Xceed Hashing control will use to hash data. To specify the algorithm you must instantiate and assign a Hashing Method object to this property. If you read the contents of the property, you will obtain an instance of a Hashing Method object.

    Experts have found one or more weaknesses in the Haval hashing algorithm; therefore, it is strongly recommended that a hashing algorithm other than Haval be used in high-security situations. For detailed information refer to the Cryptology ePrint Archive.

    Data type

    An Hashing Method object

    Possible values
     

    Value Description
    XceedSHAHashingMethod object  Use the SHA-2 hashing algorithm, which can produce either 160,256,384 or 512-bit hash values.
    XceedHavalHashingMethod object 
     
    Use the Haval hashing algorithm, which can produce either 128,160,192,224 or 256-bit hash values.

    Default value

    An instance of the XceedSHAHashingMethod object

    Remarks

    This property cannot be set during the hashing process.

    Applicable methods

    Hash, ReadFile