Generate random key

 

head /dev/urandom | strings -s '' | head -c 10

Change the last value to increase the length of the key