I have String with 44 char length and i want to convert it to 32 char length in iOS Swift 3.1
let keyString = "u6KuXJLIUwEUl7noY8J8H1ffDRwLC/5gjaWW1qTQ3hE="
i use this code for convert it to Data with 32 bytes :
let keyData = Data(base64Encoded: keyString)
and now , how to convert it to string with 32 char length?