brightdigit/ThirtyTo

View on GitHub
Sources/ThirtyTo/Base32Crockford/Base32CrockfordEncoding+CharacterSets.swift

Summary

Maintainability
A
0 mins
Test Coverage
import Foundation

extension Base32CrockfordEncoding {
  /// Character Sets used by `Base32CrockfordEncoding`
  public enum CharacterSets {
    /// Characters used by Base32Crockford.
    public static let symbols = "0123456789ABCDEFGHJKMNPQRSTVWXYZ"
    private static let additionalCheckSymbols = "*~$=U"

    /// All characters available as a checksum character by Base32Crockford.
    public static let checkSymbols = symbols + additionalCheckSymbols
  }
}