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
import Foundation | |
import Crypto // https://github.com/apple/swift-crypto | |
extension Data { | |
struct HexEncodingOptions: OptionSet { | |
let rawValue: Int | |
static let upperCase = HexEncodingOptions(rawValue: 1 << 0) | |
} | |
func hexEncodedString(options: HexEncodingOptions = []) -> String { |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.