Click here to Skip to main content
15,896,730 members
Home / Discussions / C#
   

C#

 
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 
AnswerRe: Reading Large Text File Pin
Abhijit Jana17-Oct-07 23:27
professionalAbhijit Jana17-Oct-07 23:27 
GeneralRe: Reading Large Text File Pin
satsumatable17-Oct-07 23:33
satsumatable17-Oct-07 23:33 
GeneralRe: Reading Large Text File Pin
lmoelleb17-Oct-07 23:45
lmoelleb17-Oct-07 23:45 
GeneralRe: Reading Large Text File Pin
satsumatable17-Oct-07 23:49
satsumatable17-Oct-07 23:49 
GeneralRe: Reading Large Text File Pin
lmoelleb18-Oct-07 0:10
lmoelleb18-Oct-07 0:10 
GeneralRe: Reading Large Text File Pin
Malcolm Smart18-Oct-07 0:42
Malcolm Smart18-Oct-07 0:42 
Questionnetwork port Pin
8213001217-Oct-07 23:14
8213001217-Oct-07 23:14 
AnswerRe: network port Pin
vytheese17-Oct-07 23:48
professionalvytheese17-Oct-07 23:48 
AnswerRe: network port Pin
Malcolm Smart18-Oct-07 0:46
Malcolm Smart18-Oct-07 0:46 

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.