public byte[]
EncryptMyData (byte[] plainData, out byte[] encryptionKey)<-- what the mean of this???

{
encryptionKey = Guid.NewGuid().ToByteArray();

int[] scheduledKey = AcedCast5.ScheduleKey(encryptionKey);

long iv = AcedCast5.GetOrdinaryIV(scheduledKey);

byte[] result = (byte[])plainData.Clone();

AcedCast5.EncryptCBC(scheduledKey, result, 0, result.Length, iv);

AcedCast5.ClearKey(scheduledKey);

return result;

}
public byte[] DecryptMyData(byte[] encryptedData, byte[]

decryptionKey)
{

int[] scheduledKey = AcedCast5.ScheduleKey(decryptionKey);

long iv = AcedCast5.GetOrdinaryIV(scheduledKey);

byte[] result = (byte[])encryptedData.Clone();

AcedCast5.DecryptCBC(scheduledKey, result, 0, result.Length, iv);
AcedCast5.ClearKey(scheduledKey);

return result;
}

this coding for Feistel cipher processing?????
and how about the arrangement????
sori im really2 newbie.....

My name Randy,
im school at President University Indonesia
my major is IT but newbie IT,
i have a assignment in computer network security about Feistel cipher, my assigment is make feistel cipher process in any language, an i dont understand...
sory plis help me....

Recommended Answers

All 4 Replies

Expecting that this thread will be moved to the C# forum, I can answer it as a C# question.

EncryptMyData (byte[] plainData, out byte[] encryptionKey)<-- what the mean of this???

I'm guessing you mean the out parameter? It means that the caller passes in a reference of the same type and EncryptMyData has to set it to a new array before returning. Then the caller can use the new array. It's just like a ref parameter except out parameters don't have to be initialized by the caller before being passed.

ok2...
i deleted

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.