Re: TripleDES output size
- From: "Valery Pryamikov" <valery@xxxxxxxxx>
- Date: 5 Oct 2006 23:28:53 -0700
HI,
3DES has 8 bytes (64 bits) block size.
if you use it with default CBC mode of encryption, the last block is
always padded to make it a full block. In case if plain text size is
exact multiple of 8 bytes, then the whole block of padding is added.
-Valery.
http://www.harper.no/valery
Arturo Buonanni wrote:
Hello to all,
I'm new to cryptography and I've to implement encryption of data into
a database.
I'm using .NET framework TripleDESCryptoServiceProvider to crypt and
decrypt strings.
Anyway I can not find any reference on how to calculate the length of
the encrypted string based on the length of the plain string.
As I've to store the encrypted data into table fields, I've to be sure
it fits into the field size.
Does anybody knows how to do this?
Thanks.
(I'm posting this also to microsoft.public.security.crypto)
.
- Follow-Ups:
- Re: TripleDES output size
- From: Arturo Buonanni
- Re: TripleDES output size
- References:
- TripleDES output size
- From: Arturo Buonanni
- TripleDES output size
- Prev by Date: Re: Thread.CurrentPrincipal only set once
- Next by Date: Re: Trusting a location for Framework 2.x
- Previous by thread: TripleDES output size
- Next by thread: Re: TripleDES output size
- Index(es):
Relevant Pages
|