Jump to content

Archived

This topic is now archived and is closed to further replies.

Demonic

Random 6char keygen

Recommended Posts

anyone know how to make one i know randnumbers not characters.Characters only.
nvm
[code]
<?php

$length    = 7;
$key_chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';
$rand_max  = strlen($key_chars) - 1;

for ($i = 0; $i < $length; $i++)
{
  $rand_pos  = rand(0, $rand_max);
  $rand_key[] = $key_chars{$rand_pos};
}

$rand_pass = implode('', $rand_key);

echo $rand_pass;

?>
[/code]

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.