Restricting encryption to 8 char

delphi package - madRes, madTools, madStrings, ...
Post Reply
petesouthwest
Posts: 42
Joined: Mon Dec 05, 2005 11:50 am

Restricting encryption to 8 char

Post by petesouthwest »

Hi

I've been looking at the madCrypt code, once again I'm impressed :)

But I would like to restrict the length of the encrypted and encoded string.

I see you said in the last thread:
madshi wrote:How long are your strings? Is their length always a multitude of 8? In that case encryption without length increase is possible.
But can you tell me how? I tried only having a string of 8 char ie '12345678' but my encrypted string was 24 char long.

Thanks in advance for the help
Pete
madshi
Site Admin
Posts: 10753
Joined: Sun Mar 21, 2004 5:25 pm

Post by madshi »

Do you want to encrypt only? Or do you want to encrypt + encode? In the latter case you simply can't get along with 8 bytes, cause encoding always increases the size.
Post Reply