Data
extension Data
Extension to Data for convenient Base32 operations
-
Creates a Data instance from a Base32 encoded string.
Declaration
Swift
public init?(base32Encoded base32String: String)Parameters
base32StringThe Base32 encoded string.
Return Value
The decoded Data, or nil if the string is invalid.
-
Returns the Base32 encoded string representation of this data.
Declaration
Swift
public func base32EncodedString() -> StringReturn Value
The Base32 encoded string.
-
Returns an array of bytes from the
Dataobject.Declaration
Swift
public var bytesArray: [UInt8] { get } -
Returns a Base64URL encoded string.
This encoding is URL-safe and does not include padding.
Declaration
Swift
public func base64URLEncodedString() -> String
View on GitHub