Published on January 26, 2024By DeveloperBreeze

// Define the set of characters for the password
$characters = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*';

// Generate a random password by shuffling the characters and selecting the first 12
$password = substr(str_shuffle($characters), 0, 12);

// Display the generated password
echo 'Random Password:', $password;

Comments

Please log in to leave a comment.

Continue Reading:

Generate Random Password

Published on January 26, 2024

javascriptpythonphp

Generate Random Password in JavaScript

Published on January 26, 2024

javascript