Greg, Since I am using it for file names, I thought if the cipher is both way, I am guaranteed to not get collisions. Actually I don't use decryption. -- Posted via http://www.ruby-forum.com/.