HashKit

1.0.0

HashKit is wrapped C style library CommonCrypt in Swift.
fromkk/HashKit

What's New

measure release with Swift 3

2016-11-05T08:03:28Z

HashKit

HashKit is wrapped C style library CommonCrypt in Swift.


Install

If you don't have Cartfile, should make that file in your top of project.
Add line to Cartfile

github "fromkk/HashKit" == 0.0.7

Execute carthage update from command line.


Usage

import HashKit

//NSData
let data = NSData(...)
print(data.md5())
print(data.sha1())
print(data.sha224())
print(data.sha256())
print(data.sha384())
print(data.sha512())

//String
let text = String(...)
print(text.md5())
print(text.sha1())
print(text.sha224())
print(text.sha256())
print(text.sha384())
print(text.sha512())

//hmac
text.hmac(.md5, key: "some key")

Description

  • Swift Tools
View More Packages from this Author

Dependencies

  • None
Last updated: Mon Oct 21 2024 02:27:49 GMT-0900 (Hawaii-Aleutian Daylight Time)