## Max length of encrypted encoded string

### Max length of encrypted encoded string

Hi there.

I bit of information I couldn't find in the help file:

If I've got a string of max 20 chars, whats the upper limit on the length of the string, after it has been ecrypted and encoded?

Thanks

Jacob Havkrog

I bit of information I couldn't find in the help file:

If I've got a string of max 20 chars, whats the upper limit on the length of the string, after it has been ecrypted and encoded?

Thanks

Jacob Havkrog

Sorry for being unclear.

Simply, I want to encrypt and encode a password string in order to save it to my database.

I just need to know the necessary size of the database field. Is a field length of 50 chars enough?

In clear text, my password is of max 20 chars.

pw := '12345678901234567890';

Encrypt(pw, '8nwe3r7');

x := Encode(s);

Whats the max length of x that I need to worry about? Does it depend on the encryption key?

Thanks

Jacob

Does the Encrypt(x, y) procedure preserve the length of the var parameter x?

Or is safe to say, that the lenght of x is no longer than doubled?

In other words:

For all strings x of length <= a:

Execute procedure call Encrypt(x, y)

Is it subsequentially true, that Length(x) <= 2*a ?

Or, can you give another constant instead of "2"?

Thanks

Jacob