Click here to Skip to main content
16,010,351 members
Home / Discussions / C#
   

C#

 
QuestionHow to iterate threw CheckedListBox Pin
gizmokaka18-Oct-07 1:59
gizmokaka18-Oct-07 1:59 
QuestionMigration from ASP.net 2.0 to 1.1 Pin
adilkazmi18-Oct-07 1:27
adilkazmi18-Oct-07 1:27 
AnswerRe: Migration from ASP.net 2.0 to 1.1 Pin
Abhijit Jana18-Oct-07 5:13
professionalAbhijit Jana18-Oct-07 5:13 
QuestionPassing Values between Forms Pin
Osama12318-Oct-07 0:47
Osama12318-Oct-07 0:47 
AnswerRe: Passing Values between Forms Pin
N a v a n e e t h18-Oct-07 1:02
N a v a n e e t h18-Oct-07 1:02 
AnswerRe: Passing Values between Forms Pin
benjymous18-Oct-07 1:04
benjymous18-Oct-07 1:04 
AnswerRe: Passing Values between Forms [modified] Pin
il_masacratore18-Oct-07 1:06
il_masacratore18-Oct-07 1:06 
AnswerRe: Passing Values between Forms Pin
Giorgi Dalakishvili18-Oct-07 1:07
mentorGiorgi Dalakishvili18-Oct-07 1:07 
AnswerRe: Passing Values between Forms Pin
Giorgi Dalakishvili18-Oct-07 1:12
mentorGiorgi Dalakishvili18-Oct-07 1:12 
GeneralRe: Passing Values between Forms Pin
Colin Angus Mackay18-Oct-07 2:33
Colin Angus Mackay18-Oct-07 2:33 
GeneralRe: Passing Values between Forms Pin
Giorgi Dalakishvili18-Oct-07 2:39
mentorGiorgi Dalakishvili18-Oct-07 2:39 
Questionsending email through outlook using c# Pin
Imthu18-Oct-07 0:21
Imthu18-Oct-07 0:21 
AnswerRe: sending email through outlook using c# Pin
Abhijit Jana18-Oct-07 0:33
professionalAbhijit Jana18-Oct-07 0:33 
Questionmove desktop wallpaper? Pin
songkeqiang17-Oct-07 23:57
songkeqiang17-Oct-07 23:57 
AnswerRe: move desktop wallpaper? Pin
benjymous18-Oct-07 0:11
benjymous18-Oct-07 0:11 
JokeRe: move desktop wallpaper? Pin
kartzforu18-Oct-07 0:55
kartzforu18-Oct-07 0:55 
QuestionFormsAuthentication.HashPasswordForStoringInConfigFile implementation Pin
vytheese17-Oct-07 23:29
professionalvytheese17-Oct-07 23:29 
Hi,

Can anyone help me by explaining the implementation of the below method,

FormsAuthentication.HashPasswordForStoringInConfigFile("password", "SHA1");

since I have to implement the same hashing function in java1.5.

below is my equivalent java code (but it is not returning the same result as .NET counterpart):

public static String encryptPassword(String password)
{
String enyPass;
try
{
MessageDigest messageDigest = MessageDigest.getInstance("SHA-1");
messageDigest.update(password.getBytes("UTF8"));

//enyPass = new sun.misc.BASE64Encoder().encode(messageDigest.digest());
enyPass = new BigInteger(messageDigest.digest()).toString(16);
messageDigest.reset();
}
catch(Exception ex)
{
enyPass=null;
}

return enyPass;
}


Thanks in advance,





Regards,
Vythees

AnswerRe: FormsAuthentication.HashPasswordForStoringInConfigFile implementation Pin
benjymous17-Oct-07 23:56
benjymous17-Oct-07 23:56 
AnswerRe: FormsAuthentication.HashPasswordForStoringInConfigFile implementation Pin
vytheese21-Oct-07 22:19
professionalvytheese21-Oct-07 22:19 
QuestionSetting credentials while sending mail [modified] Pin
M. J. Jaya Chitra17-Oct-07 23:26
M. J. Jaya Chitra17-Oct-07 23:26 
AnswerRe: Settign credentials while sending mail Pin
m@u17-Oct-07 23:33
m@u17-Oct-07 23:33 
GeneralRe: Setting credentials while sending mail Pin
M. J. Jaya Chitra18-Oct-07 0:07
M. J. Jaya Chitra18-Oct-07 0:07 
GeneralRe: Setting credentials while sending mail Pin
m@u18-Oct-07 0:22
m@u18-Oct-07 0:22 
GeneralRe: Setting credentials while sending mail Pin
M. J. Jaya Chitra18-Oct-07 0:36
M. J. Jaya Chitra18-Oct-07 0:36 
QuestionReading Large Text File Pin
satsumatable17-Oct-07 23:23
satsumatable17-Oct-07 23:23 

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.