Algorithm

public enum Algorithm

Enumerates available algorithms.

  • MD5

    Message Digest 5

    Declaration

    Swift

    case MD5,
  • Secure Hash Algorithm 1

    Declaration

    Swift

    SHA1,
  • Secure Hash Algorithm 2 224-bit

    Declaration

    Swift

    SHA224,
  • Secure Hash Algorithm 2 256-bit

    Declaration

    Swift

    SHA256,
  • Secure Hash Algorithm 2 384-bit

    Declaration

    Swift

    SHA384,
  • Secure Hash Algorithm 2 512-bit

    Declaration

    Swift

    SHA512
  • Obtains the digest length produced by this algorithm (in bytes).

    Declaration

    Swift

    public func digestLength() -> Int