namick / obfuscate_id

Make your ActiveRecord ids non-obvious. Mixes up record ids in a simple, reversible hashing algorithm so that it can then automatically revert the hashed number back to the original id for record lookup without having to store a hash or tag in the database.
MIT License
347 stars 137 forks source link

Any plan to obfuscate with nice Hashids #35

Open fengye87 opened 9 years ago

fengye87 commented 9 years ago

Hashids is a library to obfuscate ids in short and nice format. It would be great if obfuscate_id could support more encode/decode algorithms like this and even some others.

namick commented 9 years ago

That looks like a very cool library. Yes, I am very open to supporting more algorithms like this.

Currently, I am very busy with other projects, but would love to get pull requests.

swaathi commented 9 years ago

Here's my pull request that uses HashID's. Happy to hear any suggestions, but the build passes all tests. https://github.com/namick/obfuscate_id/pull/41

wbotelhos commented 7 years ago

Hi @fengye87 and @swaathi , since this repository is kind deprecated, I created a gem to do that: https://github.com/wbotelhos/idy

I would love your feedback. Thanks @namick for the great work until here.