Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Don Nehc 69 posts 222 karma points
    Oct 06, 2016 @ 04:29
    Don Nehc
    0

    How to Generate Hashed Password?

    Hello,

    I have a need to dynamically creating users. I was able to add users to umbracoUsers table, but password is not hashed and salted. Is there a API service I can use to hash the password?

    Best, -Don

  • [email protected] 378 posts 1915 karma points MVP 4x c-trib
    Oct 06, 2016 @ 06:38
    jeffrey@umarketingsuite.com
    0

    Hi Don,

    Umbraco handles of this for you, but it depends on the settings in your web.config.

    If you look for the UmbracoMembershipProvider, you have to change the key 'legacyEncoding' to 'false' and after that everything will be fine.

    One small issue is that all of your previously created Members can't use their password any longer (because suddenly another algorithm is changed). If that is necessary, you should definitely vote for this issue: http://issues.umbraco.org/issue/U4-8643.

    Hope this helps,

    Jeffrey

  • Don Nehc 69 posts 222 karma points
    Oct 06, 2016 @ 15:43
    Don Nehc
    0

    Thank you Jeffrey. I would like to keep hashed password that is more secure.

    I am looking for a way to generate hash and salted password grammatically.

    Best, -Don

  • [email protected] 378 posts 1915 karma points MVP 4x c-trib
    Oct 10, 2016 @ 07:17
    jeffrey@umarketingsuite.com
    0

    Hi Don,

    the password will be hashed and salted if you set "LegacyEncoding" to "False". I would highly recommend to set it like that.

    Regards, Jeffrey

  • Nik 1413 posts 6212 karma points MVP 3x c-trib
    Oct 10, 2016 @ 08:01
    Nik
    0

    One caveat to that advise though, if you are using Umbraco as a Service, don't set Legacy Encoding to False.

  • Don Nehc 69 posts 222 karma points
    Oct 12, 2016 @ 04:21
    Don Nehc
    0

    Thank you, well do that then.

    Best, -Don

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies