Return Entire thread

I need help with a bash script.

7 Name: Anonymous 2018-11-24 23:14
just one more thing, you might want to implement this by creating an array (which i guess is possible when making bash files) and listing every possible password character option in it ARRAY=(0 1 2 3 ... a b c ... X Y Z)

then pick a random number between 0 and 62, and select a character from the array with that index number. ${ARRAY[2]} would give you '2', ${ARRAY[62]} would give 'Z'

i guess strings in bash could be just arrays of characters, so you could define the password like this: (pseudocode)

char[] password = new char[30];

random r;

for i=0; i<30; i++ {
r= random [0, 62]
password[i] = ARRAY[r];

then write the 'password' variable content inside the file

Return Entire thread
Leave this field blank: