fishcake on Nostr: Something like that? πΆπΎπ€ function hashPhoneNumber(phoneNumber): hashedValue ...
Something like that? πΆπΎπ€
function hashPhoneNumber(phoneNumber):
hashedValue = ""
for each digit in phoneNumber:
if hashedValue is empty:
hashedValue = argon2Hash(digit)
else:
concatenated = hashedValue + digit
hashedValue = argon2Hash(concatenated)
return hashedValue
Published at
2024-03-27 11:40:24Event JSON
{
"id": "01ec618d7feacb915f5963a60c66bbbe0135e8dba5a8c9d0c076f61cf01d79b9",
"pubkey": "8fb140b4e8ddef97ce4b821d247278a1a4353362623f64021484b372f948000c",
"created_at": 1711539624,
"kind": 1,
"tags": [
[
"e",
"4944aecf5eb1be3895c0c3c26424e51b9463623ec803942b9169def14882614c"
],
[
"e",
"67a73435b1662cc2776a962a1194048f6168a228ece6d5aa2664bc97c10435d1"
],
[
"p",
"32e1827635450ebb3c5a7d12c1f8e7b2b514439ac10a67eef3d9fd9c5c68e245"
]
],
"content": "Something like that? πΆπΎπ€\n\nfunction hashPhoneNumber(phoneNumber):\n hashedValue = \"\"\n \n for each digit in phoneNumber:\n if hashedValue is empty:\n hashedValue = argon2Hash(digit)\n else:\n concatenated = hashedValue + digit\n hashedValue = argon2Hash(concatenated)\n \n return hashedValue",
"sig": "835eaa05652bb3c7bab81f79abcdfd99c20cd25382d370f58c2ca16ae9a6f1cbdfedc7a5e2f46e207b524626304e4b69f0ac7c6e234ff2a36e1bc6d0ef01b1d7"
}