How? Encrypt and Decrypt user membership passwords in ASP.NET
        Posted  
        
            by smdrager
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by smdrager
        
        
        
        Published on 2010-06-10T18:26:41Z
        Indexed on 
            2010/06/10
            18:42 UTC
        
        
        Read the original article
        Hit count: 265
        
We are creating a new site using ASP.NET membership provider for user registration and log in. Our old system encrypted user passwords so that we could recover them if we needed to.
I am having a great deal of trouble figuring out if it is possible to use ASP.NET membership functions to simply encrypt the password when the user registers and then unencrypt it so I can see it.
Documentation for this is neigh non-existant.
I know how to configure Web.config to have it store passwords as encrypted ala passwordFormat="Hashed" in the provider and assigning a validationKey in the machineKey, however it seems like the password still gets hashed (though perhaps it is just well encrypted). Either way I cannot decifer how the password can be recovered (by us) if neccessary.
Thanks!
© Stack Overflow or respective owner