What's involved in converting .NET Membership Provider/MS SQL Server to PHP/MySQL?

Posted on 2009-02-10
Last Modified: 2012-06-21
I have a client who already has a functional web site developed using ASP.Net. They may be wanting to convert to PHP. Their member management is done using .NET Membership Provider. I do not know anything about, and I have no idea what this Membership Provider thing is. I do have access to their database, and I see that there are a lot of encrypted fields (usernames, passwords, secret questions/answers, stuff like that). The length of the encrypted strings is 64 chars.

My primary concern is not breaking members logins if we convert. So I'm interested in knowing "what I don't know"! Is this going to be a big bag of worms?

To complicate things even more, they are currently hosted on GoDaddy, and there is no easy way to export the database. All you can do is go through a table at a time and export to .csv ! Will that do anything to the encrypted data?

I tried a simple test: I exported the data for my own account, getting the encrypted password. In PHP, I tested to see if sha1(myplaintextpassword) equalled the encrypted field, and it did not. Understandably so, since sha1's encrypted strings are always 40 chars.
Question by:alicia1234
    1 Comment
    LVL 33

    Accepted Solution

    This is no quick fix!.  For one, with the passwords stored the way they are, there is no way to recover the passwords, as they have been hashed, not encrypted (hashes are one-way).  You are also looking at a mighty big conversion process, as the two systems are completely different and will require a ton of man-hours to convert over.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    As a database administrator, you may need to audit your table(s) to determine whether the data types are optimal for your real-world data needs.  This Article is intended to be a resource for such a task. Preface The other day, I was involved …
    Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
    Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
    The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now