Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 May 2009 18:10:59 -0700
From:      Kelly Jones <kelly.terry.jones@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Blowfish encryption key length
Message-ID:  <26face530905191810m2405b09av453f43049ed83345@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
I want to use a random Blowfish key to encrypt files, so I did this:

dd if=/dev/random of=mykey.bf count=100 bs=100

to create a 10K byte mykey.bf file. I can now encrypt foo.txt by doing:

openssl enc -bf -pass file:mykey.bf -in foo.txt > foo.txt.encrypted

However, "man enc" says "Blowfish and RC5 algorithms use a 128 bit key."

Does this mean mykey.bf could've been just 16 bytes (128 bits) long?
Or am I misunderstanding the word "key" here?

-- 
We're just a Bunch Of Regular Guys, a collective group that's trying
to understand and assimilate technology. We feel that resistance to
new ideas and technology is unwise and ultimately futile.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?26face530905191810m2405b09av453f43049ed83345>