SecureHash Property

Return the message digest selected when establishing the secure connection with the server.

Syntax

object.SecureHash

The object is an expression that evaluates to a FileTransfer object. The property returns a long integer value.

Remarks

The SecureHash property returns an integer value which identifies the message digest algorithm that was selected when a secure connection is established. This property may return one of the following values:

Value Constant Description
0 fileHashNone No message digest algorithm has been selected. This is not a secure connection with the server.
1 fileHashMD5 The MD5 algorithm was selected. This algorithm takes a message of arbitrary length and produces a 128-bit message digest.
2 fileHashSHA The SHA algorithm was selected. This algorithm produces a 160-bit message digest.

If a secure connection has not been established, this property will return a value of zero.

Data Type

Integer

See Also

CipherStrength Property, HashStrength Property, Secure Property, SecureCipher Property, SecureKeyExchange Property, SecureProtocol Property


Copyright © 2008 Catalyst Development Corporation. All rights reserved.