Skip to content

Instantly share code, notes, and snippets.



  • Atlanta, GA
View GitHub Profile
nitrag / hmac.swift
Created Nov 8, 2016 — forked from davetrux/hmac.swift
HMAC algorithm for iOS
View hmac.swift
import Foundation
//You have to create a bridging header in your project containing:
// #import <CommonCrypto/CommonHMAC.h>
extension String {
func digestHMac256(_ key: String) -> String! {
let str = self.cString(using: String.Encoding.utf8)
You can’t perform that action at this time.