Click here to Skip to main content
15,915,093 members
Home / Discussions / C#
   

C#

 
GeneralRe: Getting a value from one method to another method Pin
GuyThiebaut26-Nov-13 3:48
professionalGuyThiebaut26-Nov-13 3:48 
GeneralRe: Getting a value from one method to another method Pin
OriginalGriff26-Nov-13 3:52
mveOriginalGriff26-Nov-13 3:52 
AnswerRe: Getting a value from one method to another method Pin
Richard MacCutchan26-Nov-13 2:46
mveRichard MacCutchan26-Nov-13 2:46 
QuestionNeed Decrypt Code Pin
Pradeep Dwivedi26-Nov-13 1:09
Pradeep Dwivedi26-Nov-13 1:09 
AnswerRe: Need Decrypt Code Pin
Dave Kreskowiak26-Nov-13 1:31
mveDave Kreskowiak26-Nov-13 1:31 
AnswerRe: Need Decrypt Code Pin
Manfred Rudolf Bihy26-Nov-13 2:05
professionalManfred Rudolf Bihy26-Nov-13 2:05 
AnswerRe: Need Decrypt Code Pin
OriginalGriff26-Nov-13 2:38
mveOriginalGriff26-Nov-13 2:38 
AnswerRe: Need Decrypt Code Pin
Bernhard Hiller26-Nov-13 21:35
Bernhard Hiller26-Nov-13 21:35 
Where did you find that gem? From the viewpoint of security, it is: bad.

Since you are calling GetHashCode on each character of the string, that thing might actually be reversible... (though hash functions are actually meant to be irreversible, but the input value has a far too narrow range).
Actually, you only need a table containg the hash code for all possible char values (note: release version, not debug version, as they might be different).

No, do not do so. Throw that function away.
If you need to identify users of your application, use proper hashing, with salt!
If you need to pass the password to another service (database, email provider, ...) use proper encryption.
GeneralNeed Guidens Pin
Member 1042601125-Nov-13 18:43
Member 1042601125-Nov-13 18:43 
GeneralRe: Need Guidens Pin
BillWoodruff25-Nov-13 20:25
professionalBillWoodruff25-Nov-13 20:25 
GeneralRe: Need Guidens Pin
Snehasish_Nandy25-Nov-13 20:55
professionalSnehasish_Nandy25-Nov-13 20:55 
GeneralRe: Need Guidens Pin
Abhinav S25-Nov-13 21:37
Abhinav S25-Nov-13 21:37 
QuestionHelp solve the question in a language C #? Pin
Sdam Basha25-Nov-13 5:43
Sdam Basha25-Nov-13 5:43 
SuggestionRe: Help solve the question in a language C #? Pin
Richard MacCutchan25-Nov-13 5:49
mveRichard MacCutchan25-Nov-13 5:49 
AnswerRe: Help solve the question in a language C #? Pin
OriginalGriff25-Nov-13 6:01
mveOriginalGriff25-Nov-13 6:01 
AnswerRe: Help solve the question in a language C #? Pin
Abhinav S25-Nov-13 6:33
Abhinav S25-Nov-13 6:33 
GeneralRe: Help solve the question in a language C #? Pin
harold aptroot25-Nov-13 6:44
harold aptroot25-Nov-13 6:44 
AnswerRe: Help solve the question in a language C #? Pin
DaveyM6926-Nov-13 5:27
professionalDaveyM6926-Nov-13 5:27 
QuestionPassing a value from a method to the Main() Pin
Member 982953625-Nov-13 5:10
Member 982953625-Nov-13 5:10 
AnswerRe: Passing a value from a method to the Main() Pin
Richard MacCutchan25-Nov-13 5:48
mveRichard MacCutchan25-Nov-13 5:48 
AnswerRe: Passing a value from a method to the Main() Pin
OriginalGriff25-Nov-13 6:10
mveOriginalGriff25-Nov-13 6:10 
GeneralRe: Passing a value from a method to the Main() Pin
Member 982953625-Nov-13 6:48
Member 982953625-Nov-13 6:48 
GeneralRe: Passing a value from a method to the Main() Pin
Ravi Bhavnani25-Nov-13 6:56
professionalRavi Bhavnani25-Nov-13 6:56 
GeneralRe: Passing a value from a method to the Main() Pin
OriginalGriff25-Nov-13 8:00
mveOriginalGriff25-Nov-13 8:00 
QuestionSpeechlib Pin
wernlin25-Nov-13 3:40
wernlin25-Nov-13 3:40 

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.