Click here to Skip to main content
15,914,222 members
Home / Discussions / C#
   

C#

 
GeneralRe: Is there a cute way to do this - sort of challenge Pin
OriginalGriff28-Feb-11 1:33
mveOriginalGriff28-Feb-11 1:33 
AnswerRe: Is there a cute way to do this - sort of challenge Pin
Eddy Vluggen27-Feb-11 23:41
professionalEddy Vluggen27-Feb-11 23:41 
GeneralRe: Is there a cute way to do this - sort of challenge Pin
Mycroft Holmes28-Feb-11 0:07
professionalMycroft Holmes28-Feb-11 0:07 
GeneralRe: Is there a cute way to do this - sort of challenge Pin
GenJerDan28-Feb-11 3:52
GenJerDan28-Feb-11 3:52 
GeneralRe: Is there a cute way to do this - sort of challenge Pin
Eddy Vluggen28-Feb-11 4:24
professionalEddy Vluggen28-Feb-11 4:24 
GeneralRe: Is there a cute way to do this - sort of challenge Pin
GenJerDan28-Feb-11 4:28
GenJerDan28-Feb-11 4:28 
AnswerRe: Is there a cute way to do this - sort of challenge Pin
PIEBALDconsult28-Feb-11 10:03
mvePIEBALDconsult28-Feb-11 10:03 
GeneralRe: Is there a cute way to do this - sort of challenge Pin
Mycroft Holmes28-Feb-11 12:04
professionalMycroft Holmes28-Feb-11 12:04 
GeneralRe: Is there a cute way to do this - sort of challenge Pin
PIEBALDconsult1-Mar-11 2:07
mvePIEBALDconsult1-Mar-11 2:07 
QuestionReading loaded form data Pin
shahidhabib27-Feb-11 15:11
shahidhabib27-Feb-11 15:11 
AnswerRe: Reading loaded form data Pin
Not Active27-Feb-11 17:28
mentorNot Active27-Feb-11 17:28 
AnswerRe: Reading loaded form data Pin
Wayne Gaylard27-Feb-11 20:20
professionalWayne Gaylard27-Feb-11 20:20 
QuestionQuestion About outlook add-in Pin
buffering8327-Feb-11 14:03
buffering8327-Feb-11 14:03 
AnswerRe: Question About outlook add-in Pin
Eddy Vluggen27-Feb-11 21:58
professionalEddy Vluggen27-Feb-11 21:58 
GeneralRe: Question About outlook add-in Pin
buffering832-Mar-11 12:42
buffering832-Mar-11 12:42 
GeneralRe: Question About outlook add-in Pin
Eddy Vluggen2-Mar-11 20:37
professionalEddy Vluggen2-Mar-11 20:37 
QuestionStill trying to find out how to encode and decode a string of decimal digits...Please could anyone assist me? Pin
stephen.darling27-Feb-11 7:27
stephen.darling27-Feb-11 7:27 
Dear Coders,
I am still frustrated by my problem, so I am going to ask again and hope someone may be able to help me?

First of all, I do not want to use a big num type of library, and I am not looking for the simple built in converters and formatters as this does not help my situation.

I did find code that performed the required encoding and decoding a while ago, but I just cant seem to find it anyware.

I will now explain my problem in as simple a way as I can, and then I will provide additinal info further down to explain exactly what I am trying to do.

OK, here goes...

I want to be able to input a string of any length, normaly it is going to be arround 50 digits...

string input = ("45873476774384759909120192837428394458475988343485")


After the string is entered into a text box, I want to decode the decimal digits into their hex representation and store them into a byte array.

So, if I had the following decimal digits...

67384567845

And converted them into hex, I would end up with:

FB06EE825

And to encode, I want to be able to build a fixed length byte array, for example containing the above hex, and then build a string containing the decimal representation, which for the above would be

67384567845


So, I am looking for an encode and a decode routines to perform the above. I cant simply use the bult in functions as the int, or decimal string will be around 50 digits and I do not want to use big num librarys.

The code I was given ages ago used some kind of binary routines to loop through and "build" the string.

What am I trying to do?

I want to build a byte array of FIXED length to represent the ID and version of my app, with some other data.

I then want to encrypt it

I then want to represent it as decimal digits of a fixed length, and not hex, base 32 etc etc.

I then want to be able to enter the decimal string of 50 digits into an app I built

I then want to decode the string into its hex byte representation of fixed length

I can then decrypt the byte array, and perform matching checks etc

I hope this is clear enough and I will be so gratefull if anyone can help, as binary math is not my area at the moment.

Thank you so so much for any help.
Kind regards,
Steve
AnswerRe: Still trying to find out how to encode and decode a string of decimal digits...Please could anyone assist me? Pin
Dave Kreskowiak27-Feb-11 12:11
mveDave Kreskowiak27-Feb-11 12:11 
AnswerRe: Still trying to find out how to encode and decode a string of decimal digits...Please could anyone assist me? Pin
OriginalGriff28-Feb-11 0:01
mveOriginalGriff28-Feb-11 0:01 
GeneralRe: Still trying to find out how to encode and decode a string of decimal digits...Please could anyone assist me? Pin
stephen.darling28-Feb-11 1:42
stephen.darling28-Feb-11 1:42 
GeneralRe: Still trying to find out how to encode and decode a string of decimal digits...Please could anyone assist me? Pin
Pete O'Hanlon28-Feb-11 2:37
mvePete O'Hanlon28-Feb-11 2:37 
GeneralRe: Still trying to find out how to encode and decode a string of decimal digits...Please could anyone assist me? Pin
stephen.darling28-Feb-11 3:02
stephen.darling28-Feb-11 3:02 
GeneralRe: Still trying to find out how to encode and decode a string of decimal digits...Please could anyone assist me? Pin
OriginalGriff28-Feb-11 2:49
mveOriginalGriff28-Feb-11 2:49 
QuestionReading VBA data in c# Pin
NaturePhoenix27-Feb-11 6:29
NaturePhoenix27-Feb-11 6:29 
AnswerRe: Reading VBA data in c# Pin
Moonskynoli27-Feb-11 14:39
Moonskynoli27-Feb-11 14:39 

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.