Hi, thanks for this package!
I'm looking at this as an alternative to Hashids, which I'm avoiding due in part to:
Clearly if you have access to the salt, it is trivial to calculate the function in either direction so the basis for proving or disproving property 2 lies in how easy it is for an attacker to discover the secret salt.
and
" anyone using this library should assume that id's encoded by this library are fully reversible and as such it offers no security over using the raw integer ids.
source: https://carnage.github.io/2015/08/cryptanalysis-of-hashids:
With Knuth's integer hash, it seems like it would be impossible (or at least a few orders of magnitude more difficult) for an attacker to determine the prime number, inverse, and random number and defeat the obfuscation.
Am I correct in assuming this?
I couldn't find anything discussing this online. Are you aware of any research or discussion on this topic?
Obviously key obfuscation of any kind is no guarantee of security, and I have to develop the application such that it ultimately doesn't matter if an attacker gets a real id. That said, it would make me feel better to have a sense of just how hard this obfuscation would be to break, especially relative to Hashids.
Thank you for any info you can provide!
Hi, thanks for this package!
I'm looking at this as an alternative to Hashids, which I'm avoiding due in part to:
and
source: https://carnage.github.io/2015/08/cryptanalysis-of-hashids:
With Knuth's integer hash, it seems like it would be impossible (or at least a few orders of magnitude more difficult) for an attacker to determine the prime number, inverse, and random number and defeat the obfuscation.
Am I correct in assuming this?
I couldn't find anything discussing this online. Are you aware of any research or discussion on this topic?
Obviously key obfuscation of any kind is no guarantee of security, and I have to develop the application such that it ultimately doesn't matter if an attacker gets a real id. That said, it would make me feel better to have a sense of just how hard this obfuscation would be to break, especially relative to Hashids.
Thank you for any info you can provide!