jb55 on Nostr: I’m leaning toward this for the hashed phone number that you could optionally share ...
I’m leaning toward this for the hashed phone number that you could optionally share on your profile so that damus could automatically find all your friends. It would really hard to build a rainbow table for this with a high argon2 security parameter.
What do you think Vitor Pamplona (npub1gcx…nj5z), Fabian (npub1n0s…lahe), any other mobile nostr devs ? Should we get a NIP going ?
What do you think Vitor Pamplona (npub1gcx…nj5z), Fabian (npub1n0s…lahe), any other mobile nostr devs ? Should we get a NIP going ?
quoting note1q8k…l6ncSomething 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