String

struct String
  • Calculates the Message Digest for this string. The string is converted to raw data using UTF8.

    Declaration

    Swift

    public func digest(algorithm : Digest.Algorithm) -> String

    Parameters

    algorithm

    the digest algorithm to use

    Return Value

    a hex string of the calculated digest