Click here to Skip to main content
15,887,135 members
Home / Discussions / C#
   

C#

 
GeneralRe: Games and depth of objects - help =) Pin
Anthony Mushrow3-May-05 20:46
professionalAnthony Mushrow3-May-05 20:46 
GeneralRe: Games and depth of objects - help =) Pin
Anonymous3-May-05 8:30
Anonymous3-May-05 8:30 
GeneralPiping data when using Process class Pin
CTaylor893-May-05 7:41
CTaylor893-May-05 7:41 
GeneralRe: Piping data when using Process class Pin
CTaylor893-May-05 11:48
CTaylor893-May-05 11:48 
GeneralKeep additional information inside a "serial number" Pin
eclipse2k13-May-05 7:33
eclipse2k13-May-05 7:33 
GeneralRe: Keep additional information inside a "serial number" Pin
mav.northwind3-May-05 23:36
mav.northwind3-May-05 23:36 
GeneralRe: Keep additional information inside a "serial number" Pin
eclipse2k14-May-05 1:57
eclipse2k14-May-05 1:57 
GeneralRe: Keep additional information inside a "serial number" Pin
mav.northwind4-May-05 3:24
mav.northwind4-May-05 3:24 
If you don't care about anybody finding out the algorithm, key and IV, then the symmetric algorithms in the framework are perfectly OK.

But the size of your encrypted information will be depending on the input data size. I tried encrypting a name followed by a separator character ('#') and a date and ended up with a Base64 encoded string of length 44 to 56.
I didn't manage to reduce the size of output by varying the key size.

Of course, Hex-strings are easier to type than Base64, but due to the limited alphabet are also longer.

You could work on the input data, though.
For example, instead of encrypting the whole name as it is you could just create a hashcode and encrypt this. Follow the hash code with a separator character and append the additional information you want to store.
That way you should be able to reduce the serial key reasonably.

Regards,
mav
GeneralRe: Keep additional information inside a "serial number" Pin
eclipse2k14-May-05 3:43
eclipse2k14-May-05 3:43 
GeneralStrip Non-Numeric characters from string Pin
RadioButton3-May-05 7:20
RadioButton3-May-05 7:20 
GeneralRe: Strip Non-Numeric characters from string Pin
Judah Gabriel Himango3-May-05 8:27
sponsorJudah Gabriel Himango3-May-05 8:27 
GeneralRichTextControl and Unicode problems with russian characters Pin
Uwe Keim3-May-05 6:40
sitebuilderUwe Keim3-May-05 6:40 
GeneralRe: RichTextControl and Unicode problems with russian characters Pin
Judah Gabriel Himango3-May-05 8:10
sponsorJudah Gabriel Himango3-May-05 8:10 
GeneralRe: RichTextControl and Unicode problems with russian characters Pin
Uwe Keim3-May-05 8:44
sitebuilderUwe Keim3-May-05 8:44 
GeneralRe: RichTextControl and Unicode problems with russian characters Pin
mav.northwind3-May-05 23:41
mav.northwind3-May-05 23:41 
GeneralRe: RichTextControl and Unicode problems with russian characters Pin
Uwe Keim4-May-05 0:39
sitebuilderUwe Keim4-May-05 0:39 
QuestionProcedure line separator? Pin
Carl Mercier3-May-05 6:22
Carl Mercier3-May-05 6:22 
GeneralManaging controls added at runtime Pin
Anonymous3-May-05 5:07
Anonymous3-May-05 5:07 
GeneralRe: Managing controls added at runtime Pin
MoustafaS3-May-05 5:18
MoustafaS3-May-05 5:18 
GeneralPrinting HTML from memory no User interaction Pin
gjvh3-May-05 4:29
gjvh3-May-05 4:29 
GeneralDouble buffering an entire form... Pin
MynaBay3-May-05 4:23
MynaBay3-May-05 4:23 
GeneralRe: Double buffering an entire form... Pin
Gil.Schmidt3-May-05 4:57
Gil.Schmidt3-May-05 4:57 
GeneralBeginner Problems Pin
dbuggerusa3-May-05 3:57
dbuggerusa3-May-05 3:57 
GeneralRe: Beginner Problems Pin
Dwayner793-May-05 4:34
Dwayner793-May-05 4:34 
GeneralHighlight listbox item on mouseover Pin
Dwayner793-May-05 3:55
Dwayner793-May-05 3:55 

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.