Cryptography in Swift
.package(url: "https://github.com/swiftstack/crypto.git", from: "dev")
var sha1 = SHA1()
sha1.update(bytes)
let hash = sha1.final()
_ = [UInt8](hash)
_ = String(hash)
let hash = bytes.sha1()
_ = UUID().uuidStirng
_ = UUID(uuidStirng: "96888CEE-9705-490D-E38A-B407C8A9DA65")
The implementation of SHA1 was ported from OpenSSL