Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
1 line
844 B
Plaintext
1 line
844 B
Plaintext
{"version":3,"sources":["../../../src/utilities/telemetry/oneWayHash.ts"],"sourcesContent":["import type { BinaryLike } from 'crypto'\n\nimport { createHash } from 'crypto'\n\nexport const oneWayHash = (data: BinaryLike, secret: string): string => {\n const hash = createHash('sha256')\n\n // prepend value with payload secret. This ensure one-way.\n hash.update(secret)\n\n // Update is an append operation, not a replacement. The secret from the prior\n // update is still present!\n hash.update(data)\n return hash.digest('hex')\n}\n"],"names":["createHash","oneWayHash","data","secret","hash","update","digest"],"mappings":"AAEA,SAASA,UAAU,QAAQ,SAAQ;AAEnC,OAAO,MAAMC,aAAa,CAACC,MAAkBC;IAC3C,MAAMC,OAAOJ,WAAW;IAExB,0DAA0D;IAC1DI,KAAKC,MAAM,CAACF;IAEZ,8EAA8E;IAC9E,2BAA2B;IAC3BC,KAAKC,MAAM,CAACH;IACZ,OAAOE,KAAKE,MAAM,CAAC;AACrB,EAAC"} |