Click here to Skip to main content
16,010,523 members
Home / Discussions / C#
   

C#

 
AnswerRe: Getting this simple crypto function to work in c#? Pin
MicroVirus9-Aug-11 12:20
MicroVirus9-Aug-11 12:20 
GeneralRe: Getting this simple crypto function to work in c#? Pin
stephen.darling9-Aug-11 12:26
stephen.darling9-Aug-11 12:26 
GeneralRe: Getting this simple crypto function to work in c#? Pin
MicroVirus9-Aug-11 12:56
MicroVirus9-Aug-11 12:56 
GeneralRe: Getting this simple crypto function to work in c#? Pin
stephen.darling9-Aug-11 13:18
stephen.darling9-Aug-11 13:18 
GeneralRe: Getting this simple crypto function to work in c#? Pin
MicroVirus9-Aug-11 13:39
MicroVirus9-Aug-11 13:39 
GeneralRe: Getting this simple crypto function to work in c#? Pin
stephen.darling9-Aug-11 13:52
stephen.darling9-Aug-11 13:52 
GeneralRe: Getting this simple crypto function to work in c#? Pin
MicroVirus9-Aug-11 14:08
MicroVirus9-Aug-11 14:08 
GeneralRe: Getting this simple crypto function to work in c#? Pin
stephen.darling9-Aug-11 14:14
stephen.darling9-Aug-11 14:14 
Hi.

Instead I used the following, and that worked...

System.Array.Copy(licenseKey, 0, licenseKey, 8, 8);


But the code still wont work, and I get an out of bounds/index error from this line:

Aux[k] ^= right[k + 8];


I know that in the c++ version, the original data and the encrypted data are exactly the same length, and when I used the other function it worked OK. So I can only presume it is trying to grow the original data array, which I would not want.

So, I am still stuck with this one Cry | :(( and it is driving me insane.

Thank you for your help so far though, it is appreciated!

Steve
AnswerRe: Getting this simple crypto function to work in c#? [modified] Pin
MicroVirus10-Aug-11 2:48
MicroVirus10-Aug-11 2:48 
GeneralRe: Getting this simple crypto function to work in c#? Pin
stephen.darling10-Aug-11 3:57
stephen.darling10-Aug-11 3:57 
GeneralRe: Getting this simple crypto function to work in c#? Pin
BobJanova10-Aug-11 4:00
BobJanova10-Aug-11 4:00 
GeneralRe: Getting this simple crypto function to work in c#? Pin
stephen.darling10-Aug-11 4:08
stephen.darling10-Aug-11 4:08 
GeneralRe: Getting this simple crypto function to work in c#? Pin
MicroVirus10-Aug-11 4:27
MicroVirus10-Aug-11 4:27 
AnswerRe: Getting this simple crypto function to work in c#? Pin
OriginalGriff9-Aug-11 21:39
mveOriginalGriff9-Aug-11 21:39 
GeneralRe: Getting this simple crypto function to work in c#? Pin
stephen.darling10-Aug-11 4:04
stephen.darling10-Aug-11 4:04 
GeneralRe: Getting this simple crypto function to work in c#? Pin
OriginalGriff10-Aug-11 4:21
mveOriginalGriff10-Aug-11 4:21 
AnswerRe: Getting this simple crypto function to work in c#? Pin
BobJanova9-Aug-11 23:18
BobJanova9-Aug-11 23:18 
GeneralRe: Getting this simple crypto function to work in c#? Pin
stephen.darling10-Aug-11 4:19
stephen.darling10-Aug-11 4:19 
GeneralRe: Getting this simple crypto function to work in c#? Pin
BobJanova10-Aug-11 8:22
BobJanova10-Aug-11 8:22 
GeneralRe: Getting this simple crypto function to work in c#? Pin
stephen.darling11-Aug-11 4:25
stephen.darling11-Aug-11 4:25 
QuestionGet div values Pin
Herboren9-Aug-11 9:40
Herboren9-Aug-11 9:40 
AnswerRe: Get div values Pin
BobJanova9-Aug-11 23:05
BobJanova9-Aug-11 23:05 
QuestionResetting a user control using the same instance Pin
MAW309-Aug-11 9:27
MAW309-Aug-11 9:27 
AnswerRe: Resetting a user control using the same instance Pin
BillWoodruff9-Aug-11 9:58
professionalBillWoodruff9-Aug-11 9:58 
GeneralRe: Resetting a user control using the same instance Pin
MAW309-Aug-11 10:35
MAW309-Aug-11 10:35 

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.