Skip to content

Instantly share code, notes, and snippets.

@davetrux
Last active August 29, 2015 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davetrux/5c1855f4f61d84cb7ec8 to your computer and use it in GitHub Desktop.
Save davetrux/5c1855f4f61d84cb7ec8 to your computer and use it in GitHub Desktop.
import Foundation
func getHmacValue()-> String {
let data = "Message"
let result = data.digestHMac256("secret")
return result
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment