# Using OpenSSL blowfish algorithm

**URL:** <https://www.ruby-forum.com/t/using-openssl-blowfish-algorithm/167695>\
**Category:** Rails\
**Created:** [May 11, 2009, 5:46pm UTC](https://www.ruby-forum.com/t/using-openssl-blowfish-algorithm/167695 "2009-05-11T17:46:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![simon1](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/fbc32d/32.png) [@simon1](https://www.ruby-forum.com/u/simon1)\
**Post date:** [May 11, 2009, 5:46pm UTC](https://www.ruby-forum.com/t/using-openssl-blowfish-algorithm/167695/1 "2009-05-11T17:46:11Z")

</div>

Hi,

Just wondering if anybody is familiar with how this is implemented?  
In particular, if there is a way to set the key size to something  
larger than the default (ie, set it for 256-bit). If I generate a key  
of this size will it automatically get used, or is it truncated down  
to the default size?

I’m a little confused since when using AES it seems like you specify  
the size (aes-256-cbc) while with Blowfish it isn’t specified in the  
name (bf-cbc).

Thanks,

Simon
