Struct
struct HashType
public struct HashType <: ToString & Equatable<HashType>
Description: Indicates a hash algorithm type struct. MD5, SHA1, SHA224, SHA256, SHA384, and SHA512 are common digest algorithms.
Parent Type:
prop MD5
public static prop MD5: HashType
Description: Returns an MD5 type.
Type: HashType
prop SHA1
public static prop SHA1: HashType
Description: Returns a SHA1 type.
Type: HashType
prop SHA224
public static prop SHA224: HashType
Description: Returns a SHA224 type.
Type: HashType
prop SHA256
public static prop SHA256: HashType
Description: Returns a SHA256 type.
Type: HashType
prop SHA384
public static prop SHA384: HashType
Description: Returns a SHA384 type.
Type: HashType
prop SHA512
public static prop SHA512: HashType
Description: Returns a SHA512 type.
Type: HashType
prop SM3
public static prop SM3: HashType
Description: Returns a SM3 type.
Type: HashType
func toString()
public func toString(): String
Description: Obtains the name of a hash algorithm.
Returns:
- String: name of the hash algorithm
operator func ==(HashType)
public operator override func ==(other: HashType): Bool
Description: Checks whether two HashType values references the same instance.
Parameters:
- other: HashType: HashType to be compared
Returns:
- Bool: If they are the same,
true
is returned. Otherwise,false
is returned.
operator func !=(HashType)
public operator override func !=(other: HashType): Bool
Description: Checks whether two HashType values references different instances.
Parameters:
- other: HashType: HashType to be compared
Returns:
- Bool: If they are different,
true
is returned. Otherwise,false
is returned.