Nested While Loop Bash Linux Script To Decrypt