Encrypt pwd locally