Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

107 Commits

Repository files navigation

Crypto

Cryptography in Swift

Package.swift

.package(url:"https://github.com/swiftstack/crypto.git", from:"dev")

SHA1

varsha1=SHA1()
sha1.update(bytes)lethash= sha1.final()

Convert to Array or String

_ =[UInt8](hash)
_ =String(hash)

Convenience extensions

lethash= bytes.sha1()

UUID

_ =UUID().uuidStirng
_ =UUID(uuidStirng:"96888CEE-9705-490D-E38A-B407C8A9DA65")

Acknowledgments

The implementation of SHA1 was ported from OpenSSL

About

Cryptography in Swift

Topics

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages