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

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -