Developer forum

Forum » Templates » Razor generate encrypted user password

Razor generate encrypted user password

Nuno Aguiar
Reply

Hi,

 

How can we generate an MD5 encrypted password to update a password in Razor?

 

I now we need to append "DwSecret" to the password, right?

 

Nuno


Replies

 
Mikkel Ricky
Reply
This post has been marked as an answer

You can use Dynamicweb.Base.pwEncrypt to get an encrypted password (like the one generated in User Management):

@Dynamicweb.Base.pwEncrypt("test")

Is this a follow up question to your previous (and very old) question on PwToken [http://developer.dynamicweb-cms.com/forum/templates/pwtoken.aspx]?

Best regards,
Mikkel

 

Votes for this answer: 1
 
Nuno Aguiar
Reply

Hi Mikkel,

 

That's perfect, thanks

 

Nuno

 
Mikkel Toustrup Olsen
Reply

Hi Mikkel,

As I know you're using MD5 encryption? - this encryption method has shown to be pretty weak on modern websites - do you have plans on implementing a new encryption method? - or is it possible to do some custom encryption? - If possible, do you have any hints on how?

/MikkelTO

 
Mikkel Ricky
Reply

Stronger encryption (actually SHA-512 hashing) of user passwords will be implemented in Dynamicweb 8.6.

Best regards,
Mikkel

 

You must be logged in to post in the forum