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

C#

 
GeneralRe: encoding and decoding in BASE 10 Pin
Luc Pattyn14-Sep-10 10:24
sitebuilderLuc Pattyn14-Sep-10 10:24 
AnswerRe: encoding and decoding in BASE 10 Pin
T M Gray14-Sep-10 10:21
T M Gray14-Sep-10 10:21 
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 
OK, let me try one more time, seen as your all being patient with me, which is greatly appreciated.

I will have a license generator that will create a fixed length serial number like:

0000 0000 0000 0000

This will be built from a range of bytes, though the exact number of bytes is not set in stone yet.

I thought I would use some routine to set some bytes like:

byte 1 = 0x00 (ID of program)
byte 2 = 0x00 (version)

etc etc

Then, I want to encrypt the byte array, then present it as a string of digits (a number that is an encoding of the byte array)

0000 0000 0000 0000

Then when the user types this into the application, I decode it back into bytes so I can decrypt it and get at each byte.

If I simply created a serial number as a string of numbers:

string serial = ("1234 1234 1234 1234")
and encrypted it, it is no longer numbers.

To add, all of this comes from the following paper, with actual code in c++

http://www.licenturion.com/xp/fully-licensed-wpa.txt[^]

but even if I managed to convert the code into c#, it only has decoder functions and not encoding functions.

Thank you again
Steve
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 
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 

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.