Encrypting byte array
From: Etienne Charland (mystery@golden.net)
Date: 03/25/03
- Next message: Ben Lowery: "Re: simple security issue file i/o"
- Previous message: Peter Rilling: "Re: problem installing Passport."
- Next in thread: Juan Ramon Martinez: "Re: Encrypting byte array"
- Reply: Juan Ramon Martinez: "Re: Encrypting byte array"
- Reply: Alek Davis: "Re: Encrypting byte array"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Etienne Charland" <mystery@golden.net> Date: Tue, 25 Mar 2003 16:21:07 -0500
I need a function that encrypts (another one to decrypt) a byte array, and
returns the encrypted byte array. I've done it using CryptoStream, but this
gives very poor performances since I convert the bytes into a stream,
encrypt with CryptoStream (wich converts to byte arrays internally), and
then convert the result stream into a byte array. Have anyone done such a
function that works directly with ICryptoTransform to convert blocks of
data? If yes, could I have a link? If not, I have another question. Since
block sizes are fixed (16 bytes for Rijndael), how do I know the length of
the data during decryption? When encrypting, I have to add padding, but
then, on decryption, I don't know what is the data and what is the
padding...
Thank you very much for your help
Etienne
- Next message: Ben Lowery: "Re: simple security issue file i/o"
- Previous message: Peter Rilling: "Re: problem installing Passport."
- Next in thread: Juan Ramon Martinez: "Re: Encrypting byte array"
- Reply: Juan Ramon Martinez: "Re: Encrypting byte array"
- Reply: Alek Davis: "Re: Encrypting byte array"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|