Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Re-3: Encrypting a Filename

by marcink (Monk)
on Jun 15, 2001 at 03:16 UTC ( [id://88664]=note: print w/replies, xml ) Need Help??


in reply to Re-3: Encrypting a Filename
in thread Encrypting a Filename

Well, I _did_ write it was a simple solution, didn't I? ;-)

I like tye's suggestion, although increasing file name might mean exceeding filesystem's name length limit... Hmm... perhaps good ol' enigma?

-mk

Replies are listed 'Best First'.
Re-5: Encrypting a Filename
by John M. Dlugosz (Monsignor) on Jun 15, 2001 at 03:32 UTC
    I was just thinking on the drive home that I could implement the Vigenère cypher as a CUFP as a companion to your post.

    I also figured out how to use a stream cypher: treat the legal character set as a wheel, and use the output of a pseudorandom sequence (as set up initially with your key) as a count to shift the wheel. So even though the sequence produces numbers in the range 0..255, I can map that using modulo addition. That doesn't 'feedback' though, so I need to throw the current character into the sequence generator as it's encoded.

    I also wonder if RC4 can be trivially adapted to use an arbitrary sized alphabet.

    Using Enigma, generalized to any alphabet, is just plain cool, too!

    —John

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (1)
As of 2024-04-16 21:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found