From: Bill Kelly Date: 2005-09-28T01:55:21+09:00 Subject: Re: How do I (really) encrypt a string in ruby? From: "Michal Suchanek" > However, encrypting 2.0M file gives 2.1M file. > Since doing encryption in C makes 2.0M ciphertext from 2.0M plaintext, > and it is also possible to decrypt the 2.0M ciphertext to the original > plaintext, something is rotten here. Any chance you're using Windows? Maybe it's a "text mode" vs. "binary mode" problem? (LF -> CRLF in the output) If you're on Windows, try: STDIN.binmode STDOUT.binmode at the top of your script? HTH, Bill