[plug] Allowing only 1 user read access to a file at a time.

Ishwor Gurung ishwor.gurung at gmail.com
Mon Jan 11 18:06:18 WST 2010


2010/1/11 Carl Gherardi <carl.gherardi at gmail.com>:
[...]
> This is a crap solution - effectively i'm looking for something like a
> license server, but that feels like overkill too.

I am interested. Why is this an overkill?

Thought:
Those who are allowed to view it can use the pub key sent by server to
encrypt their passwd at client side which is then decrypted by the
server using its priv key which after a sucesful auth and "only one
copy" as per your requirement, sends the document down the wire. You
could send down plaintext if you want.

It takes ~100 lines of Python code (just to give a rough estimate..
should defeiniltey be more in C and so so in Java) to implement a tcp
server that sends down public key to clients. Add another hundred for
receiving through socket and verificaiton of "one copy at any one
time" requirement. That's about 300-400 lines of code and your jobs
done.
--
Regards
Ishwor Gurung
Key id:0xa98db35e
Key fingerprint:FBEF 0D69 6DE1 C72B A5A8  35FE 5A9B F3BB 4E5E 17B5



More information about the plug mailing list