I want to create an SHA1 hmac hash of a string using a key in swift. In obj-c I used this and it worked great:
+(NSString *)sha1FromMessage:(NSString *)messa
Apple enum values are defined differently in Swift. Instead of kCCHmacAlgSHA1, it's probably defined like CCHmacAlgorithm.SHA1.
kCCHmacAlgSHA1
CCHmacAlgorithm.SHA1
This is answered here: https://stackoverflow.com/a/24411522/2708650