How do people usually do this? Obviously it's easiest just to use IDs and 
prety easy to avoid any problems with guessing IDs.

But if you do want to obfuscate IDs I suppose you could either add the 
column (not ideal since better to work with IDs) or do the encryption each 
time you create and retrieve an ID (for example, via virtual fields).

Here's an article with several implementations:
http://kevin.vanzonneveld.net/techblog/article/create_short_ids_with_php_like_youtube_or_tinyurl/


Reply via email to