TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Masked Identifier adds non-incrementing IDs to ActiveRecord objects

9 pointsby matthodanalmost 14 years ago

2 comments

briandollalmost 14 years ago
I like the options to control the size of the 'IDs' and the charset used.<p>I wrote something like this a few years ago called 'acts_as_hashed' that as you might guess, uses a hash function to come up with a unique non-sequential identifier. <a href="https://github.com/briandoll/acts_as_hashed" rel="nofollow">https://github.com/briandoll/acts_as_hashed</a>
jvoorhisalmost 14 years ago
Enumerable ids are an unfortunate weakness in the Rails + MySQL stack. This is good. I'd also like an easy way to use UUIDs instead of incrementing integer primary keys.