Ask a Question related to ASP.NET Security, Design and Development.
-
Mike Carr #1
Help with Encryption Library
I followed the Guide "How To: Create an Encryption Library" of Building Secure ASP.NET Applications: Authentication, Authorization, and Secure Communication. I kept getting an error here:
decStream.FlushFinalBlock() whenever the text to Decrypt was under 7 characters. Is there a minimum text length that TripleDes can Encrypt/Decrypt?
public byte[] Decrypt(byte[] bytesData, byte[] bytesKey)
{
.... decStream.FlushFinalBlock(); <=== HERE...
} //end Decrypt
--
MICHAEL CARR
Mike Carr Guest
-
http, library loaded, httpS library can't be found
I'm trying to get Verisign's Payflow Pro setup and going. I thought I had everything working, but when I went in through the SSL, httpS://, it... -
Cannot instantiate .NET Class Library to expose webservice client library
Now that I have got the mickey mouse .NET interop problem sorted (exposing ..NET library to ASP/VB6), I want to demo the real problem I am having. ... -
Calling a Managed C++ library which uses a load library function from a WS
Good Day! Im trying to call a managed c++ library from a web service using c# but when i go trough the code the was'nt able to load the library.... -
~/Library/ vs ~/System/Library vs /User/Library/
In article <110720031327074895%justin.c@se.net>, justin <justin.c@se.net> wrote: First off, you're a little bit confused. ~ means your home... -
[XFree86] system can't find library ( strange library behaviour )
Hi Mark, No I hadn't tried ldconfig, but it sorted out the problem, thanks! I'd read a little bit about libraries a while ago, but could not... -
Hernan de Lahitte #2
Re: Help with Encryption Library
Michael,
The minimum text lengh for decryption depends on the algorithm block size
expressed in bytes in case you where using a block cipher algorithm like
DES, 3DES, RC2 or Rijndael. If you take for example 3DES with a defualt
blocksize of 64 bits (8 bytes), the minimum length will be 8 bytes. If your
encrypted data size is less then 8 bytes, the encription process will apply
padding to complete the 8 bytes (or a multiple of 8) size. So on every block
ci[her your encrypted data size will always be a multiple of the blocksize
algorithm.
Cheers,
Hernan
--
Hernan de Lahitte
Lagash Systems S.A.
[url]http://weblogs.asp.net/hernandl[/url]
Shadowfax Dev Team
This posting is provided "AS IS" with no warranties, and confers no rights.
"Mike Carr" <mcarr@san.rr.com> wrote in message
news:uvIr6oCHEHA.2744@TK2MSFTNGP10.phx.gbl...
I followed the Guide "How To: Create an Encryption Library" of Building
Secure ASP.NET Applications: Authentication, Authorization, and Secure
Communication. I kept getting an error here:
decStream.FlushFinalBlock() whenever the text to Decrypt was under 7
characters. Is there a minimum text length that TripleDes can
Encrypt/Decrypt?
public byte[] Decrypt(byte[] bytesData, byte[] bytesKey)
{
....
decStream.FlushFinalBlock(); <=== HERE
....
} //end Decrypt
--
MICHAEL CARR
Hernan de Lahitte Guest



Reply With Quote

