String
extension String
-
Validates whether given String is a valid URL or not
Declaration
Swift
public var isValidUrl: Bool { get } -
Encodes current String into Base64 encoded string
Declaration
Swift
public func base64Encoded() -> String?Return Value
Base64 encoded string
-
Decodes current String into Base64 decoded string
Declaration
Swift
public func base64URLSafeEncoded() -> String?Return Value
Base64 decoded string
-
Decodes current Base64 encoded string
Declaration
Swift
public func base64Decoded() -> String? -
Validates whether current String is base64 encoded or not
Declaration
Swift
public func isBase64Encoded() -> Bool -
Decodes URL string
Declaration
Swift
public func decodeURL() -> Data?Return Value
URL safe decoded bytes array
-
Adds base64 pad
Declaration
Swift
public func base64Pad() -> StringReturn Value
Base64 pad added string
-
Decodes base64 and converts it into bytes array
Declaration
Swift
public func decodeBase64() -> Data?Return Value
Base64 decoded bytes array
-
Converts String to URL safe decoded string
Declaration
Swift
public func urlSafeDecoding() -> StringReturn Value
URL safe decoded string
-
Converts String to URL safe encoded string
Declaration
Swift
public func urlSafeEncoding() -> StringReturn Value
URL safe encoded string
-
Converts String to bytes array
Declaration
Swift
public var bytes: Array<UInt8> { get } -
Converts String to SHA256 bytes array
Declaration
Swift
public var sha256: Data? { get } -
Extracts Recovery Codes from HTML scripts from AM’s Display Recovery Code Node
Declaration
Swift
public func extractRecoveryCodes() -> [String]?Return Value
An array of strings for recovery codes
View on GitHub