Password Permutation Logic (password hardening)