From: Daniel Berger Date: 2009-02-06T06:40:52+09:00 Subject: Re: Best way to encrypt/decrypt a word On Feb 5, 12:30 pm, Ruby Student wrote: > Hello Team, > > I have the need to encrypt/decrypt a one word string. The encrypted word > will be saved in a file. > Later the word will be picked-up from the file, decrypt it at execution > time, and use it as a UNIX password to perform certain function that > requires authentication. > What Ruby facility is available for this simple function? Rotate the password in the file. Remember the rotation level. And then... require 'crypt/rot13' rotation = 4 encrypted_password = IO.read(some_file) password = Crypt::Rot13.new(encrypted_password, -rotation) MWAHAHAHAH! Hey, you didn't specify the _level_ of encryption. >:) Regards, Dan