Hopefully fixed ArrayIndexOutOfBoundsException by using the same length
for the password every time.