Hari_Dutt
(Hari Dutt)
January 25, 2019, 6:25am
#1
Hi everyone,
I am using custom email functionality. I have set the SMTP details under
Comapny Maintenance -> Email & Reporting tab.
But Password has been stored into the database in encrypted form.
How to Decrypt the password in UD form script editor. Please suggest.
hasokeric
(Haso Keric)
February 13, 2019, 1:41pm
#2
It depends how its Encrypted. You could try to use the method that is used to Decrypt the SysAgent Password, I believe that its encrypted in the same way.
Epicor.Security.Cryptography.Encryptor.DecryptToString(passwordStringHere)
When it comes to User Passwords Just an FYI There is an Article on that
From a high-level Epicor has a little helper class to hash the password via 2 helper methods ComputeHash, VerifyHash it does support different algorithm’s such as SHA1, SHA256, SHA384, SHA512, MD5 but by default Epicor uses SHA256.
That helper lies in Epicor.System.dll usually stored in the bin folder on the IIS App Server.
High Level ComputeHash:
Using RNGCryptoServiceProvider creates a random number salt as bytes
Converts your plain-text password string into bytes
Creates a buffer with th…
Hari_Dutt
(Hari Dutt)
February 13, 2019, 6:20pm
#3
Thanks hasokeric. This is working fine.
1 Like