SHA1
public struct SHA1 : HashFunctionImplementationDetails
The SHA-1 Hash Function. ⚠️ Security Recommendation: The SHA-1 hash function is no longer considered secure. We strongly recommend using the SHA-256 hash function instead.
-
Declaration
Swift
public static var blockByteCount: Int { get set } -
Undocumented
Declaration
Swift
public static var byteCount: Int { get set } -
Undocumented
Declaration
Swift
public typealias Digest = Insecure.SHA1Digest -
Initializes the hash function instance.
Declaration
Swift
public init() -
Declaration
Swift
public mutating func update(bufferPointer: UnsafeRawBufferPointer) -
Returns the digest from the data input in the hash function instance.
Declaration
Swift
public func finalize() -> `Self`.DigestReturn Value
The digest of the inputted data
View on GitHub
Install in Dash
SHA1 Structure Reference