If you need to generate a random alpha-numeric string PHP, you can use this simple method:
AAI@EduHr plugin for WordPress
I have written a WordPress plugin called WP AAI@EduHr Auth, which can be used to replace standard WordPress authenticaiton mechanism with AAI@EduHr authentication. For more information you can visit: https://wordpress.org/plugins/wp-aaieduhr-auth/