Skip to content

Instantly share code, notes, and snippets.

View rosskimes's full-sized avatar

Ross Kimes rosskimes

View GitHub Profile
@wizard1066
wizard1066 / ReceiptValidation1.swift
Created September 26, 2020 13:00
ReceiptValidation1.swift
private func computeHash() {
let identifierData = getDeviceIdentifier()
var ctx = Insecure.SHA1.init()
let identifierBytes: [UInt8] = .init(identifierData)
ctx.update(data: identifierBytes)
let opaqueHex = hexStringToData(string: "53547E14B435DDCBE06ED2BF986F4F5B")
ctx.update(data: opaqueHex)