J
Javier 12
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
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