php - How to create a key(like FBAppid) automatically for registration? -


i need create auto generated key , send through mail registration process.the key should have atleast 50 characters(like facebook appid) length , must unique . using php technology , mysql data base.

i new php , need help.

for 50 chars , cryptographically safe string use.

openssl_random_pseudo_bytes(50); 

Comments

Popular posts from this blog

vb.net - Alternative to the T-SQL AS keyword -

php - MySQLi binding parameters in a prepared statement doesn't work unless inserted after "WHERE" -

ios - CFRelease causing crash in iPad application -