Skip to content

Instantly share code, notes, and snippets.

View MuhsinFatih's full-sized avatar
💭
Spaces are dead, and we have killed them, - tabs

Muhsin Fatih Yorulmaz MuhsinFatih

💭
Spaces are dead, and we have killed them, - tabs
  • Rabbit Inc
  • Los Angeles
View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 {