http://www.vidyasocks.com/forums.php?id=1&id=1
as you can see at the bottom I am using hash as a way to identify users. How can I trim off the rest after 10 characters?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Trimming runs the risks of hash collisions where two users potentially share the same trimmed portion.
http://en.wikipedia.org/wiki/Collision_(computer_science)
Hashing algorithms go to great length to avoid this possibility so modification of the hashed results in any way is not recommended.