Due to increased security policies, most of us are required to change the passwords almost every month and you can’t use your 5 previous passwords. Here is a useful Matlab code to simulate a password that contains, numbers, letters and special characters. You can save the file as makePass.m or remove the function line and execute without function mode. Enjoy.

function pass=makePass;

pool={'1','2','3','4','5','6','7','8','9','0','a','b','c','d','e','f','g','h',...
        'i','j','k','l','m','n','o','p','r','s','t','u','v','w','y','z','!','@','#','$','%','^','&','*'};

    aa=ceil(rand(1,8)*42);

    pass=[pool{aa(1)} pool{aa(2)} pool{aa(3)} pool{aa(4)} pool{aa(5)} pool{aa(6)} pool{aa(7)} pool{aa(8)}];

Related Posts

  • How to play music in Matlab
  • How to check the mail size of Outlook
  • How to detect fake Morgan Dollar
  • How to send money overseas in 10 minutes
  • How to send fax over the internet
  • How to access or manipulate Nicedit editor with PHP/MySQL
  • How to search keywords in a folder or file
  • How to access email attachments blocked in Outlook
  • How to recover the previous tabs in Mozilla Firefox
  • How to print out pages with low ink cartridge