Click here to Skip to main content
15,894,362 members
Home / Discussions / C#
   

C#

 
GeneralRe: encoding and decoding in BASE 10 Pin
stephen.darling14-Sep-10 10:55
stephen.darling14-Sep-10 10:55 
GeneralRe: encoding and decoding in BASE 10 Pin
AspDotNetDev14-Sep-10 11:22
protectorAspDotNetDev14-Sep-10 11:22 
GeneralRe: encoding and decoding in BASE 10 Pin
stephen.darling14-Sep-10 12:11
stephen.darling14-Sep-10 12:11 
GeneralRe: encoding and decoding in BASE 10 Pin
T M Gray14-Sep-10 12:17
T M Gray14-Sep-10 12:17 
GeneralRe: encoding and decoding in BASE 10 Pin
Luc Pattyn14-Sep-10 12:28
sitebuilderLuc Pattyn14-Sep-10 12:28 
GeneralRe: encoding and decoding in BASE 10 Pin
stephen.darling14-Sep-10 12:50
stephen.darling14-Sep-10 12:50 
GeneralRe: encoding and decoding in BASE 10 [modified] Pin
Luc Pattyn14-Sep-10 13:27
sitebuilderLuc Pattyn14-Sep-10 13:27 
GeneralRe: encoding and decoding in BASE 10 Pin
stephen.darling14-Sep-10 13:36
stephen.darling14-Sep-10 13:36 
Thank you for the responce, would your option (c2) do the following, as I found the part of the paper that concerns me, so here it is qouted from the paper itself...



"a 41-digit decimal number. A
decimal number of this length roughly corresponds to a 136-bit binary
number. In fact, the 41-digit number is just the decimal encoding of
such a 136-bit multi-precision integer, which is stored in little
endian byte order as a byte array. Hence, the above Installation ID
can also be represented as a sequence of 17 bytes as in

               0xXX 0xXX 0xXX 0xXX 0xXX 0xXX 0xXX 0xXX
               0x94 0xAA 0x46 0xD6 0x0F 0xBD 0x2C 0xC8
               0x00"


Now, when I looked at the code, there was alot of << operations etc, so that maybe closer.

Also, how do I combine it all together using your option?

If a ushor gives me 5 digits, how do I combine the bytes to form one 20 or 25 digit number?

Thank you again
Steve
GeneralRe: encoding and decoding in BASE 10 Pin
Luc Pattyn14-Sep-10 13:43
sitebuilderLuc Pattyn14-Sep-10 13:43 
GeneralRe: encoding and decoding in BASE 10 Pin
stephen.darling14-Sep-10 14:05
stephen.darling14-Sep-10 14:05 
GeneralRe: encoding and decoding in BASE 10 Pin
AspDotNetDev14-Sep-10 14:34
protectorAspDotNetDev14-Sep-10 14:34 
GeneralRe: encoding and decoding in BASE 10 Pin
stephen.darling14-Sep-10 14:57
stephen.darling14-Sep-10 14:57 
GeneralRe: encoding and decoding in BASE 10 Pin
federico.strati15-Sep-10 3:11
federico.strati15-Sep-10 3:11 
GeneralRe: encoding and decoding in BASE 10 Pin
harold aptroot15-Sep-10 4:46
harold aptroot15-Sep-10 4:46 
GeneralRe: encoding and decoding in BASE 10 Pin
Luc Pattyn15-Sep-10 5:04
sitebuilderLuc Pattyn15-Sep-10 5:04 
Questiondynamic jpg photo Pin
benams14-Sep-10 9:45
benams14-Sep-10 9:45 
AnswerRe: dynamic jpg photo Pin
Pete O'Hanlon14-Sep-10 10:04
mvePete O'Hanlon14-Sep-10 10:04 
AnswerRe: dynamic jpg photo Pin
Luc Pattyn14-Sep-10 10:22
sitebuilderLuc Pattyn14-Sep-10 10:22 
AnswerRe: dynamic jpg photo Pin
T M Gray14-Sep-10 10:36
T M Gray14-Sep-10 10:36 
AnswerRe: dynamic jpg photo Pin
AspDotNetDev14-Sep-10 11:12
protectorAspDotNetDev14-Sep-10 11:12 
GeneralRe: dynamic jpg photo Pin
Luc Pattyn14-Sep-10 11:27
sitebuilderLuc Pattyn14-Sep-10 11:27 
QuestionPhones validator. Pin
Evgeni5714-Sep-10 9:37
Evgeni5714-Sep-10 9:37 
AnswerRe: Phones validator. Pin
T M Gray14-Sep-10 10:06
T M Gray14-Sep-10 10:06 
QuestionLINQ to SQL - Design Pattern Pin
brunoseixas14-Sep-10 8:09
brunoseixas14-Sep-10 8:09 
AnswerRe: LINQ to SQL - Design Pattern Pin
Ennis Ray Lynch, Jr.14-Sep-10 8:23
Ennis Ray Lynch, Jr.14-Sep-10 8: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.