Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 10 of 10

Thread: Accessing Customer Password

  1. #1
    mohanrh is offline Member
    Join Date
    Jul 2009
    Posts
    78

    Default Accessing Customer Password

    We are planning to go live with our new site on ML64 platform. We have some classic .asp websites that use the store user email/password information for authentication purpose. When we migrate our main ecommerce website to aspdotnet storefront platform, all the passwords will be encrypted. In such a case other .asp web sites cannot use that information for authentication.

    Is there a way to still authenticate users based on customer credentials? In other words, how can I decrypt the salted password in user table from a classic asp website?

    Any pointers or suggestions in this regard is greately appreciated.

    Mohan

  2. #2
    ssgumby is offline Senior Member
    Join Date
    Feb 2009
    Posts
    683

    Default

    I believe you only have one option and that is to set all passwords to something random and have them change them. Once the password is encrypted in your old system there is no way to undo it. This is assuming your passwords were encrypted with a one-way encryption algorithm which is standard practice for passwords.

  3. #3
    ASPAlfred is offline Senior Member
    Join Date
    Nov 2007
    Posts
    2,244

    Default

    Agreed. The passwords are salted+hashed, which is one way. There isn't any way to decrypt the customer passwords once they are stored in the database. So, you're only option is to set all passwords into something random and require them to change it once they logged in (set PwdChangeRequired = 1 in the customer table).

  4. #4
    mohanrh is offline Member
    Join Date
    Jul 2009
    Posts
    78

    Default password, decrypt

    Thanks for the info. But in our case, we don't have any issues with user auth on the main site

    In our case we also have some subsidiary ASP sites which have user login pages and use sql queries against customer table to validate user credentials. All such queries will fail since the user passwords are encrypted.


    Is there any way to replicate the security.vb functionality outside of storefront environment so that other sites too can validate users?

    Thanks
    Mohan

  5. #5
    DanV's Avatar
    DanV is offline Ursus arctos horribilis
    Join Date
    Apr 2006
    Posts
    1,568

    Default

    You could write functionality in another application that mimics our hashing logic, yes. Another way to handle it would be to mod WSI to support user authentication against an aspdotnetstorefront database using our internal logic (please make sure your communication is secure).

  6. #6
    wkelly is offline Junior Member
    Join Date
    Dec 2010
    Posts
    1

    Default mimic hashing logic

    "You could write functionality in another application that mimics our hashing logic, yes"

    How could I get details to mimic your hashing logic?

  7. #7
    khazendar is offline Junior Member
    Join Date
    Sep 2011
    Posts
    2

    Default

    Quote Originally Posted by wkelly View Post
    "You could write functionality in another application that mimics our hashing logic, yes"

    How could I get details to mimic your hashing logic?
    Did you find any answer for that?

  8. #8
    dhavaludani is offline Junior Member
    Join Date
    Nov 2009
    Posts
    11

    Default

    No answer to this

  9. #9
    cjbarth is offline Senior Member
    Join Date
    Oct 2008
    Posts
    392

    Default

    I've done it before, but I want to make entirely sure I understand what you are after. You have another site that you want to allow people to gain access from ASPDNSF, or you have another site you want to access ASPDNSF from?
    ML9.3.1.1
    SQL 2012 Express
    VS 2010
    Azure VM

  10. #10
    dhavaludani is offline Junior Member
    Join Date
    Nov 2009
    Posts
    11

    Default

    Its the latter. You can say that I want to port my data to another DB (say in an Open Source environment) and hence need some logic which will decrypt passwords. My other option is resetting passwords of all users and sending all of them the new password for login which will not be a good solution from a customer perspective.