Hi Lev,

The BlowfishCipher.java file, at the very bottom, has a simple main
method test (this needs to be moved into a JUnit test case).  That
shows you how to use the Cipher directly.

You can generate your own Key (recommended instead of using the Shiro
default) can be done by simply calling:

System.out.println( Base64.encode(
BlowfishCipher.generateNewKey().getEncoded() ) );

The string is a base64 encoded string of the key bytes.

The BlowfishCipher.generateNewKey method is overloaded to also accept
an integer that allows you to specify the number of bits the key
should have.  The no-arg method variant defaults to 128 bits.

Does this help?

Regards,

Les

On Tue, Jan 26, 2010 at 3:18 AM, lev <[email protected]> wrote:
>
> no one?
>
> any one??
> --
> View this message in context: 
> http://n2.nabble.com/public-key-private-key-authetication-tp4446010p4459422.html
> Sent from the Shiro User mailing list archive at Nabble.com.
>

Reply via email to