Afficher un message
Vieux 26/03/2008, 07h35   #5
NC
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Why all hash algorithm are hexadecimal in PHP?

On Mar 25, 2:21 pm, macm <moura.ma...@gmail.com> wrote:
>
> how can I create a hash algorithm like youtube?


Why do you think it's a hash? It's probably a unique ID represented
as a 62-based number...

> Some tips? How compile?


If you are content with case-insensitive IDs (meaning 36-based
numbers) you can use base_convert():

http://php.net/base_convert

If you insist on higher base, you would have to write the conversion
routine yourself...

Cheers,
NC
  Réponse avec citation
 
Page generated in 0,08431 seconds with 9 queries