Click here to Skip to main content
15,923,689 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: problem in connectivity. Pin
Zafar A khan 16-Jul-09 1:49
professionalZafar A khan 16-Jul-09 1:49 
Questionhow can i develop a program in aspx format and use it in php site?!! Pin
Nafiseh Salmani15-Jul-09 21:10
Nafiseh Salmani15-Jul-09 21:10 
AnswerRe: how can i develop a program in aspx format and use it in php site?!! Pin
Abhishek Sur15-Jul-09 22:33
professionalAbhishek Sur15-Jul-09 22:33 
QuestionRe: how can i develop a program in aspx format and use it in php site?!! Pin
Nafiseh Salmani15-Jul-09 22:42
Nafiseh Salmani15-Jul-09 22:42 
AnswerRe: how can i develop a program in aspx format and use it in php site?!! Pin
Abhishek Sur16-Jul-09 1:27
professionalAbhishek Sur16-Jul-09 1:27 
AnswerRe: how can i develop a program in aspx format and use it in php site?!! Pin
Abhijit Jana16-Jul-09 1:49
professionalAbhijit Jana16-Jul-09 1:49 
QuestionHow to retain the filepath entered in fileupload control? [modified] Pin
meeram39515-Jul-09 19:56
meeram39515-Jul-09 19:56 
QuestionHow to decrypt a password Pin
janani1315-Jul-09 19:45
janani1315-Jul-09 19:45 
Hai all,

I'm encrypting the password by using the code as below . Please tell me how to decrypt the same.Please help me..



#region Password Util
   /// <summary>
   /// Encrypts a string using the SHA256 algorithm.
   /// </summary>
   public static string HashPassword(string plainMessage)
   {
       byte[] data = Encoding.UTF8.GetBytes(plainMessage);
       using (HashAlgorithm sha = new SHA256Managed())
       {
           byte[] encryptedBytes = sha.TransformFinalBlock(data, 0, data.Length);
           return Convert.ToBase64String(sha.Hash);
       }


   }


   #endregion

   protected void btnSubmit_Click(object sender, EventArgs e)
   {
       bo.UserID = txtUserId.Text;
       Password p = new Password(txtPassword.Text.ToString());
       String newpwd = p.SaltedPassword;
       System.Nullable<int> newsaltkey = p.Salt;
       bo.Encryptpwd = newpwd;
       bo.Saltkey = p.Salt;
       bo.Password = txtPassword.Text;

       passwordFormat = MembershipPasswordFormat.Hashed;
       if (passwordFormat == MembershipPasswordFormat.Hashed)
           bo.Blogpwd = HashPassword(txtPassword.Text);
       else
           bo.Blogpwd = txtPassword.Text;

AnswerRe: How to decrypt a password Pin
Brij15-Jul-09 19:52
mentorBrij15-Jul-09 19:52 
GeneralRe: How to decrypt a password Pin
janani1315-Jul-09 20:06
janani1315-Jul-09 20:06 
AnswerRe: How to decrypt a password Pin
himanshu256115-Jul-09 20:00
himanshu256115-Jul-09 20:00 
GeneralRe: How to decrypt a password Pin
janani1315-Jul-09 20:08
janani1315-Jul-09 20:08 
GeneralRe: How to decrypt a password Pin
K030615-Jul-09 20:28
K030615-Jul-09 20:28 
GeneralRe: How to decrypt a password Pin
janani1315-Jul-09 21:01
janani1315-Jul-09 21:01 
Questionhi how to apply css to the drop dowlist in the catalog zone Pin
lakshmichawala15-Jul-09 19:11
lakshmichawala15-Jul-09 19:11 
Questionurl hide Pin
Member 387988115-Jul-09 19:01
Member 387988115-Jul-09 19:01 
AnswerRe: url hide Pin
himanshu256115-Jul-09 20:31
himanshu256115-Jul-09 20:31 
QuestionSystem.ArgumentException: Parameter is not valid. Pin
nudma15-Jul-09 18:26
nudma15-Jul-09 18:26 
QuestionGridview checkbox without datafield Pin
dptalt15-Jul-09 7:24
dptalt15-Jul-09 7:24 
AnswerRe: Gridview checkbox without datafield Pin
Not Active15-Jul-09 9:02
mentorNot Active15-Jul-09 9:02 
GeneralRe: Gridview checkbox without datafield [modified] Pin
dptalt15-Jul-09 9:28
dptalt15-Jul-09 9:28 
GeneralRe: Gridview checkbox without datafield Pin
Not Active15-Jul-09 10:04
mentorNot Active15-Jul-09 10:04 
AnswerRe: Gridview checkbox without datafield Pin
Abhishek Sur15-Jul-09 10:49
professionalAbhishek Sur15-Jul-09 10:49 
GeneralRe: Gridview checkbox without datafield Pin
Not Active15-Jul-09 15:36
mentorNot Active15-Jul-09 15:36 
QuestionProblem with reading excel before moving data to sql server Pin
rajg8215-Jul-09 6:59
rajg8215-Jul-09 6:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.