* note that..this is not a secure random password.. please use other encryption method or use java randomLib
- <?php
- function characterSuffle($len = 6) {
- $list = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*()_-=+;:,.?";
- return $str;
- }
- echo characterSuffle();
- echo characterSuffle(8);
- echo characterSuffle(16);
- echo characterSuffle(32);
- ?>
No comments:
Post a Comment