# Encrypting 6-8+ character strings (passwords)

**URL:** <https://www.ruby-forum.com/t/encrypting-6-8-character-strings-passwords/159791>\
**Category:** Ruby\
**Created:** [February 8, 2009, 10:04pm UTC](https://www.ruby-forum.com/t/encrypting-6-8-character-strings-passwords/159791 "2009-02-08T22:04:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![thabenksta](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/97f17d/32.png) [@thabenksta](https://www.ruby-forum.com/u/thabenksta)\
**Post date:** [February 8, 2009, 10:04pm UTC](https://www.ruby-forum.com/t/encrypting-6-8-character-strings-passwords/159791/1 "2009-02-08T22:04:17Z")

</div>

Is there a good ruby library for encrypting strings less than 8  
characters?

I’ve used [http://crypt.rubyforge.org/](http://crypt.rubyforge.org/) in the past but it doesn’t seem to  
work for less than 8 characters. I could try padding it with blanks and  
trim on decryption but wanted to know what else is out there.

Thanks in advance.
