Two quick questions about ruby's string#crypt(salt) method.
- In the documentation it claims the salt should be two characters? I thought a salt could be anything I wanted, no? I am using a random value that is larger than two characters and it seems to work fine. Is this an error in the documentation or in my understanding of how this works? 
- Currently it generates a string that is ~15 chars. I'd like to generate something longer, at least 32 chars. Is there a way to do this with built in ruby functionality? If not, what is a recommended gem/plugin to use to simply generate a (longer) hash given a string val? 
Thank you,
Tom