Swift Class to triple DES Encrypt using keyed-hash message authentication code (HMAC)
Links: https://gist.github.com/jernejstrasner/1d5fa5e2fabda2e729d1
import CryptoSwift
let cypherSwift = CypherSwift()
let encryptedString = cypherSwift.tripleDesEncrypt(pass) //pass the string password you want to cypher
let keyVal = "f25a2s1m11" //use the public key to crypt
var result = keyVal + url.lowercaseString //using a url where is a signature password to encode
result = result.hmac(CryptoAlgorithm.SHA256, key: keyVal) //Use any of the hash available, here I'm using 256-bit hash (SHA256)