This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Base32.swift | |
// Created by Steve Streza on 26.9.14. | |
// Updated by Martin Troup on 4.11.16. | |
// | |
import Foundation | |
func Base32Encode(data: Data) -> String { | |
let alphabet = [ "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "2", "3", "4", "5", "6", "7"] | |
return Base32Encode(data: data, alphabet: alphabet) |