Andres
Andres

Reputation: 11747

Unique string (id) from two parameters

I've been reading a lot about how to generate a unique id, using hash, sha, md5, and things like that.

I need to generate a unique id for a unique url using two parameters, so I can't use an md5 hash, or sha because those are way too long, and the url will be really big.

I like the way youtube identifies each video, anybody knows how this can be done? anything to read?

Thanks!

Upvotes: 0

Views: 198

Answers (1)

MichaelT
MichaelT

Reputation: 7934

I think you should read this thread How to code a URL shortener? it answer your question exactly

Upvotes: 1

Related Questions