Skip to content

Repository files navigation

Build Status

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" == 1.0.2

Execute carthage update from command line.


Usage

import HashKit
//NSData
letdata=NSData(...)print(data.md5())print(data.sha1())print(data.sha224())print(data.sha256())print(data.sha384())print(data.sha512())
//String
lettext=String(...)print(text.md5())print(text.sha1())print(text.sha224())print(text.sha256())print(text.sha384())print(text.sha512())
//hmac
text.hmac(algorithm:.md5, key:"some key")

About

HashKit is wrapped C style library CommonCrypt in Swift.

Topics

Resources

Stars

9 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages