On Fri, Mar 19, 2010 at 5:00 PM, Hadley Wickham <had...@rice.edu> wrote:
> Hi all,
>
> Does any one know of any encryption/decryption algorithms in R?  I'm
> not looking for anything robust - I want some way of printing output
> to the screen that the user can't read immediately, but can decrypt a
> little later.  The main thing I don't want to the user to see is a
> number, so (e.g.) ROT13 isn't appropriate.

 You could just include the numbers in a ROT13-sort of algorithm. It
would end up being ROT-18 I guess...

 Would a single permutation of c(letters,0:9) be sufficient? Or you
could add other characters. And what about non-ascii encodings?
Hmmm...

 a bit of strsplit, match, paste magic should do it...

Barry

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to