Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Blowfish strength

From: holger:rebol at: 10-Jul-2001 15:59

On Sat, Jul 07, 2001 at 11:15:40AM -0500, Paul Tretter wrote:
> Is there a reason that strength is always set to 40 even though you set it to 128. Notice the following: > > >> crypt-port: make port! [ > [ scheme: 'crypt > [ algorithm: 'blowfish > [ direction: 'encrypt > [ strength: 128 > [ key: to-binary "REBOL" > [ padding: true > [ ] > >> probe crypt-port
It is because the key "REBOL" is 5 bytes long, i.e. 40 bits long. If you use a longer key then strength will reflect that, e.g. the key "This is just a test" will result in strength to become 128. Strength always reflects the true, resulting key length and is set to the largest value supported by the algorithm, the key and the license (export or full). -- Holger Kruse [holger--rebol--com]