0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-12-01 04:12:23 +01:00
posthog/hogvm/__tests__/crypto.hog
Marcus Hof 41e86f6519
feat(cdp): make hash functions return null if the input is null (#26311)
Co-authored-by: Marius Andra <marius.andra@gmail.com>
2024-11-20 13:16:03 +00:00

11 lines
360 B
Plaintext

let string := 'this is a secure string'
print('string:', string)
print('md5Hex(string):', md5Hex(string))
print('md5Hex(null):', md5Hex(null))
print('sha256Hex(string):', sha256Hex(string))
print('sha256Hex(null):', sha256Hex(null))
let data := ['1', 'string', 'more', 'keys']
print('data:', data)
print('sha256HmacChainHex(data):', sha256HmacChainHex(data))