AdminLogin-fix potential difference generated pass

Fix potential difference between admin login and generated password if Tools::encrypt method was changed
Merge pull request #1286 from s-duval/patch-3

AdminLogin-fix potential difference generated pass