Blowfish Strength

Discussion of open issues, suggestions and bugs regarding LiteDAC (SQLite Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
MikeD
Posts: 7
Joined: Fri 09 Oct 2015 10:48

Blowfish Strength

Post by MikeD » Fri 09 Oct 2015 15:01

What level of strength is the blowfish encryption?

MaximG
Devart Team
Posts: 1822
Joined: Mon 06 Jul 2015 11:34

Re: Blowfish Strength

Post by MaximG » Mon 12 Oct 2015 11:43

Please describe in more details, what do you mean by "level of strength" of the Blowfish algorithm ?

MikeD
Posts: 7
Joined: Fri 09 Oct 2015 10:48

Re: Blowfish Strength

Post by MikeD » Wed 14 Oct 2015 15:43

The key length. As in 32 to 448 bits.

MaximG
Devart Team
Posts: 1822
Joined: Mon 06 Jul 2015 11:34

Re: Blowfish Strength

Post by MaximG » Fri 16 Oct 2015 09:28

The blowfish algorithm uses variable key length from 32 to 448 bits. When using our component TLiteEncryptor, you can set the encryption key in 2 different ways:

1. By setting the Password property. Thus, the encryption key will be retrieved by hashing the value of the Password property and will have fixed length - 256 bits. Learn more at https://www.devart.com/litedac/docs/?de ... ssword.htm

2. Using the SetKey method, when the key length can be specified explicitly. At this, note that the key length in the SetKey method is specified in bytes. Therefore, in case with the Blowfish algorithm, you can specify the key length from 4 to 56 bytes. See more details at https://www.devart.com/litedac/docs/?de ... int32).htm

MikeD
Posts: 7
Joined: Fri 09 Oct 2015 10:48

Re: Blowfish Strength

Post by MikeD » Fri 16 Oct 2015 14:24

I guess I could have been a bit more clear, sorry about that. I'm using a TLiteConnection component, in Direct Mode, Blowfish Encryption with a user provided password (EncryptionKey).

MaximG
Devart Team
Posts: 1822
Joined: Mon 06 Jul 2015 11:34

Re: Blowfish Strength

Post by MaximG » Mon 19 Oct 2015 08:47

When using database file encryption with the Blowfish algorithm, the encryption key will be retrieved by hashing the value of the LiteConnection.EncryptionKey property and will have fixed length - 256 bits.

Post Reply