Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Re: Obscure data

by sweetblood (Prior)
on Nov 24, 2003 at 16:11 UTC ( [id://309569]=note: print w/replies, xml ) Need Help??


in reply to Re: Obscure data
in thread Obscure data

I'm not sure what rot13 is but it sounds deliciously morbid.(g) Can you elaborate? I've done no encryption previously and have a very minimal degree of knowledge in the area.I have however learned from being here to take your suggestions seriously.

Thanks!

Replies are listed 'Best First'.
Re: Re: Re: Obscure data
by Anonymous Monk on Nov 24, 2003 at 16:29 UTC
    It's dumb. It's something like
    perl -le'$_=shift;s/(.)/chr( 13 + ord $1)/ge;print' abcdef nopqrs --- [from jargon] --- rot13 /rot ther'teen/ n.,v. [Usenet: from `rotate alphabet 13 places'] The simple Caesar-cypher encryption that replaces each English lett +er with the one 13 places forward or back along the alphabet, so that +"The butler did it!" becomes "Gur ohgyre qvq vg!" Most Usenet news readi +ng and posting programs include a rot13 feature. It is used to enclose + the text in a sealed wrapper that the reader must choose to open -- e.g +., for posting things that might offend some readers, or {spoiler}s. A major advantage of rot13 over rot(N) for other N is that it is self-inverse, so the same code can be used for encoding and decodin +g. See also {spoiler space}, which has partly displaced rot13 since non-Unix-based newsreaders became common.
Re: Re: Re: Obscure data
by l2kashe (Deacon) on Nov 24, 2003 at 16:34 UTC

    rot13 == add 13 to the value of a character.

    I've only ever used it on alpha type data streams, but I assume you could do something similar on numbers as well. Simple rot13 key gen below. The value in the top row becomes the value in the bottom row, and vice versa

    $f = 'a'; for ( 0 .. 25 ) { print "$f "; print "\n" if $_ == 12; $f++; } print "\n";

    use perl;

Re: Obscure data
by Abigail-II (Bishop) on Nov 24, 2003 at 16:47 UTC
      Ok, I see what you mean. This is not a bad approach except for the numeric data. I suppose I could convert every byte to it's ascii code value and then add 13, but this could get more complicated than I'd like. I'm trying to keep it simple, which is not always easy for me.

      Thanks!

        For numbers, use rot5:
        y!a-zA-Z0-9!n-za-mN-ZA-M5-90-4!
        Or go wild and do something like:
        y!a-zA-Z0-9!n-zA-Z0-9a-m!

        Abigail

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2024-04-25 12:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found