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
  • Pictor Labs
  • Los Angeles
View GitHub Profile
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 {
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.