Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Java
get hexadecimal hash string for a number
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Lew, post: 5050394"] First of all, hashing a unique integer is silly. It's already unique! If you have a reliably unique, stable integer ID, you don't need to hash it! Just use the value. Got that? Good, because an internal database ID is not reliable. It's *internal*! It's not meant to be used externally! Got that? Good, because the database record has (or you're not doing it right) an external unique key, one based on visible attributes. You could hash that key. Or you could perhaps use [URL]http://docs.oracle.com/javase/7/docs/api/java/rmi/server/UID.html[/URL] You'll want to store that UID with the registration record. First and foremost google around for hash codes and how to use them. Your lack of understanding will screw you otherwise. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Java
get hexadecimal hash string for a number
Top