Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Storing encrypted data in url

by Ytrew (Pilgrim)
on Dec 05, 2004 at 23:44 UTC ( [id://412550]=note: print w/replies, xml ) Need Help??


in reply to Storing encrypted data in url

7 small numbers, and a username? Your data sounds pretty small.

Perhaps you could create a one time pad on the server (assuming you have a source of true randomness, like /dev/random under Linux), then pass in the index number of the one time pad in plaintext, and the encrypted data. That's the "most perfect" form of encryption, but generating and transmitting a one time pad is cumbersome.

Since you're maintaining the one time pad file on your own web server, you don't need to transmit it. Generating it may or may not be practical: you need a source of true randomness. You also need some way to keep it from getting too big or too slow: by using the byte offset for your index, you could speed up lookups, but you'ld need some way to periodically trim the file, or it will get too big.

It's just a thought. You'll have to examine for yourself whether it could fit your needs.

--
Ytrew Q. Uiop

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://412550]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2024-03-28 14:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found