From: Javier 12 Date: 2010-12-29T21:00:37+09:00 Subject: Encrypting a File by intercepting its methods Hi, I've been trying to encrypt file by intercepting File methods, or in this case, Tempfile methods. The problem is I need an algorithm that can be used transparently on each byte, since I don't know how long will be the buffer used by the user in each read. For example, ROT13 (very weak) allows concatenation of crypted text like this: ABCDEF + XYZ = ABCDEFXYZ this is the desired behaviour, so I can read buffers of any size and still be able to decrypt them. I've tried RC4 with no success. I want to transparently encrypt reads and writes to disk, is it possible? thanks in advance -- Posted via http://www.ruby-forum.com/.