Skip to content

How secure are generated hashes ? #580

@mmdalix

Description

@mmdalix

I am using UUIDs for my mysql db, and I am wondering if I can use this library instead so db's performance would get better.
However, I want to know how secure is this method compared to UUIDs ?
At first I saw that lower integers are encoded to shorter hashes so it expose a little information about order of rows.
but how about hashes with same size ? If I use a secure salt, is it nearly impossible to compare two hashes (to determine which one is a higher number) or decode them without knowing the salt ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions