3
How can I generate a random string with a certain format? I’m doing it with PHP encryption but I can’t format the values.
I wanted it to generate according to the following example:
A9MDY3-X6S
My code is only creating one md5
but wanted to generate a text as in the example above.
My code:
<?php md5(date("d/m/Y H:i:s")); ?>
Note: I would like to perform in Javascript.