Just take the string as bytes and hash it ffs

  • MangoPenguin
    link
    fedilink
    English
    arrow-up
    4
    ·
    edit-2
    4 months ago

    Even 255 bytes with 10 million entries is only ~2.6GB of data you need to store, and if you have 10 million users the probably $1 a month extra that would cost is perfectly fine.

    I suppose there may be a performance impact too since you have to read more data to check the hash, but servers are so fast now it doesn’t seem like that would be significant unless your backend was poorly made.