SHA256

public final class SHA256

SHA-256 implementation from Secure Hash Algorithm 2 (SHA-2) set of cryptographic hash functions (FIPS PUB 180-2).

  • Undocumented

    Declaration

    Swift

    public init(_ input: [UInt8])
  • Undocumented

    Declaration

    Swift

    public init(_ string: String)
  • Returns the digest as hexadecimal string.

    Declaration

    Swift

    public func digestString() -> String
  • Returns the digest.

    Declaration

    Swift

    public func digest() -> [UInt8]