Swift Package Index


Hashing algorithms


  • The latest stable release is 1.4.0. Released 2 years ago.
  • The last commit to master was 2 years ago.

Swift Version Compatibility

  • 1.4.0 and master
    5.3
    5.2
    5.1
    5.0
    4.2
Full build results

Platform Compatibility

  • 1.4.0 and master
    iOS
    macOS(Intel)
    macOS(ARM)
    Linux
    tvOS
    watchOS
Full build results

Hash

Hashing algorithms

Importing

.package(url: "https://github.com/DavidSkrundz/Hash.git", .upToNextMinor(from: "1.4.0"))

Hash: Equatable, CustomStringConvertible

let bytes: [UInt8]
var description: String // hexadecimal representation

Hashing

init()
mutating func hashData(_ data: [UInt8])
func finalize() -> Hash
static func hash(_ data: [UInt8]) -> Hash

Implemented Functions

  • MD2
  • MD4
  • MD5
  • SHA0
  • SHA1
  • SHA2<T>
    • sha224
    • sha256
    • sha384
    • sha512
  • SHA3<T>
    • sha224
    • sha256
    • sha384
    • sha512