Re: [R] Help with decrypting

2016-11-09 Thread MacQueen, Don
Thanks, David. It does read without error using readBin. And using file.info as you suggest seem to be a step in the right direction (the length of foo agrees with 'wc -l' on the file). I just get different errors on subsequent attempts to use it. (I should have mentioned in the beginning, whatev

Re: [R] Help with decrypting

2016-11-09 Thread Marc Schwartz
en > Lawrence Livermore National Laboratory > 7000 East Ave., L-627 > Livermore, CA 94550 > 925-423-1062 > > > From: Marc Schwartz mailto:marc_schwa...@me.com>> > Date: Monday, November 7, 2016 at 3:30 PM > To: dh m mailto:macque...@llnl.gov>> > Cc: R-help m

Re: [R] Help with decrypting

2016-11-09 Thread David Winsemius
> On Nov 9, 2016, at 10:35 AM, MacQueen, Don wrote: > > Bob, > > Thanks for responding. I've tried the functions in bcrypt, and get, for > example, > >> infl <- 'path.to.the.encrypted.file' >> junk <- 'the.password' >> foo <- readLines(infl) > Warning message: > In readLines(infl) : > incompl

Re: [R] Help with decrypting

2016-11-09 Thread MacQueen, Don
Bob, Thanks for responding. I've tried the functions in bcrypt, and get, for example, > infl <- 'path.to.the.encrypted.file' > junk <- 'the.password' > foo <- readLines(infl) Warning message: In readLines(infl) : incomplete final line found on 'path.to.the.encrypted.file' > tmp <- checkpw(junk,

Re: [R] Help with decrypting

2016-11-09 Thread MacQueen, Don
.org>> Subject: Re: [R] Help with decrypting On Nov 7, 2016, at 4:47 PM, MacQueen, Don mailto:macque...@llnl.gov>> wrote: I have a file containing encrypted contents. The contents can be decrypted using perl, like this: open (FILEHANDLE, "/path/to/file") chomp ($ciphertext

Re: [R] Help with decrypting

2016-11-07 Thread Bob Rudis
Perhaps https://cran.r-project.org/web/packages/bcrypt/index.html might be of assistance. If not, drop a note back to the list as it'll be trivial to expand on that to give you an R alternative to Perl. On Mon, Nov 7, 2016 at 5:47 PM, MacQueen, Don wrote: > I have a file containing encrypted con

Re: [R] Help with decrypting

2016-11-07 Thread Marc Schwartz
> On Nov 7, 2016, at 4:47 PM, MacQueen, Don wrote: > > I have a file containing encrypted contents. The contents can be decrypted > using perl, like this: > > open (FILEHANDLE, "/path/to/file") > chomp ($ciphertext = ); > > > use Crypt::CBC; > $cipher = Crypt::CBC->new( -key=> 'my secret