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