Click here to Skip to main content
15,886,689 members
Home / Discussions / C#
   

C#

 
QuestionRegex getting special characters Pin
PozzaVecia28-Oct-12 4:18
PozzaVecia28-Oct-12 4:18 
AnswerRe: Regex getting special characters Pin
Richard Andrew x6428-Oct-12 4:37
professionalRichard Andrew x6428-Oct-12 4:37 
AnswerRe: Regex getting special characters Pin
Richard MacCutchan28-Oct-12 5:17
mveRichard MacCutchan28-Oct-12 5:17 
AnswerRe: Regex getting special characters Pin
OriginalGriff29-Oct-12 1:27
mveOriginalGriff29-Oct-12 1:27 
QuestionHow do I expose the LoadCompleted method in the WebBrowser class in WPF C#? Pin
Xarzu27-Oct-12 19:00
Xarzu27-Oct-12 19:00 
AnswerRe: How do I expose the LoadCompleted method in the WebBrowser class in WPF C#? Pin
OriginalGriff27-Oct-12 22:14
mveOriginalGriff27-Oct-12 22:14 
AnswerRe: How do I expose the LoadCompleted method in the WebBrowser class in WPF C#? Pin
Richard MacCutchan28-Oct-12 0:21
mveRichard MacCutchan28-Oct-12 0:21 
QuestionHow to convert a string to an unique numeric value? Pin
gibsray27-Oct-12 1:09
gibsray27-Oct-12 1:09 
Hi I'm doing a RSA project in which I have encrypt and decrypt functions that get a BigInteger value when called and return encrypetd or decrypted BigInteger value. I get the number to encrypt or decrypt from the user (from textbox) and send it to the proper function. This work good when the user entered numeric values in the text box but now I try to make it work for any string that the user gives (numbers, letters and special chars) so I need to convert the input string to a unique BigInteger value so I can decrypt and encrypt it properly. I tried to use UTF8 encoding and Ascii Encoding (convert the string to byte array, the byte array to biginteger and send the biginteger to the proper function). both didn't work well because I couldn't decrypt a message after encrypting it using the methods above and after I converted the bigniteger value back to string it just showed me alot of strange characters ("?" and sqaures). So how can I make it work and what's the best method to convert a string to an unique BigInteger?
(
My program works well when the input is "259327521" for example (I can encrypt and decrypt such inputs), however this doesn't work when the input has letters or special chars "hello this is secret message!" so what I tried to do is to convert this kind of string to the BigInteger (using UTF8 encoding and Ascii encoding) but with no success because I couldn't decrypt properly a cipher after encrypting it and also I got weird chars after trying to convert the BigInteger back to the string
)
thanks alot
AnswerRe: How to convert a string to an unique numeric value? Pin
Alan N27-Oct-12 2:12
Alan N27-Oct-12 2:12 
AnswerRe: How to convert a string to an unique numeric value? Pin
Clifford Nelson29-Oct-12 9:56
Clifford Nelson29-Oct-12 9:56 
AnswerRe: How to convert a string to an unique numeric value? Pin
BobJanova29-Oct-12 23:39
BobJanova29-Oct-12 23:39 
QuestionWould you use a custom enumerator? Pin
DaveyM6926-Oct-12 21:40
professionalDaveyM6926-Oct-12 21:40 
AnswerRe: Would you use a custom enumerator? Pin
BobJanova29-Oct-12 0:32
BobJanova29-Oct-12 0:32 
GeneralRe: Would you use a custom enumerator? Pin
DaveyM6929-Oct-12 1:57
professionalDaveyM6929-Oct-12 1:57 
GeneralRe: Would you use a custom enumerator? Pin
BobJanova29-Oct-12 3:41
BobJanova29-Oct-12 3:41 
GeneralRe: Would you use a custom enumerator? Pin
DaveyM6929-Oct-12 11:00
professionalDaveyM6929-Oct-12 11:00 
AnswerRe: Would you use a custom enumerator? Pin
Richard Deeming29-Oct-12 2:17
mveRichard Deeming29-Oct-12 2:17 
GeneralRe: Would you use a custom enumerator? Pin
DaveyM6929-Oct-12 5:19
professionalDaveyM6929-Oct-12 5:19 
AnswerRe: Would you use a custom enumerator? Pin
Clifford Nelson29-Oct-12 8:52
Clifford Nelson29-Oct-12 8:52 
GeneralRe: Would you use a custom enumerator? Pin
DaveyM6929-Oct-12 10:45
professionalDaveyM6929-Oct-12 10:45 
Questionhow can we add a reference in c#.net project programmatically?? Pin
prani_partner26-Oct-12 19:45
prani_partner26-Oct-12 19:45 
AnswerRe: how can we add a reference in c#.net project programmatically?? Pin
Dave Kreskowiak27-Oct-12 3:37
mveDave Kreskowiak27-Oct-12 3:37 
AnswerRe: how can we add a reference in c#.net project programmatically?? Pin
Eddy Vluggen27-Oct-12 4:24
professionalEddy Vluggen27-Oct-12 4:24 
AnswerRe: how can we add a reference in c#.net project programmatically?? Pin
Clifford Nelson29-Oct-12 13:54
Clifford Nelson29-Oct-12 13:54 
QuestionApp Without Installation Pin
C-P-User-326-Oct-12 10:33
C-P-User-326-Oct-12 10:33 

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.