Easy password generator using website name scratch

broken image
broken image

broken image

The main algorithm for password generation contains a FOR loop, which does the following: Take care that if you enter a very high number of characters your computer will use a lot of computing resources.īefore we dive into the password generation loop, we’ll define an empty string variable, which will contain our password. We’ll start from a length of 8 characters, which can be reduced to a minimum of 1 or to any maximum. The longer the password, the higher the security. Next, we’ll define another numerical variable which contains the length of the password. The purpose of this variable is to randomly loop through the sets at each iteration of the password generation. In our case it will be 4: lower case, upper case, numbers and special characters.

broken image

Next we’ll define a numeric variable which contains the total number of characters set. SpecialChar = our example we are going to use all alphanumeric characters and a decent amount of special characters. By changing the content of each variable, we can limit the usage of certain characters. Since we are doing the password generator in Scilab, we are going to define 4 string variables, containing the characters. The character set definition means deciding which characters are going to go into the password. Image: Password generator logical diagram

broken image