Symmetric File Encryption Using GPG

Provides easy symmetric file encryption using GPG with cryptographically strong defaults. Only symmetric encryption is supported. GPG is pre-installed with most Linux distributions. Windows users will need to install 'Gpg4win' ( http://www.gpg4win.org/). OS X users will need to install 'GPGTools' ( https://gpgtools.org/).


The rcrypt package provides easy symmetric file encryption using GPG with cryptographically strong defaults. Only symmetric encryption is supported.

Examples

To encrypt a file

encrypt("path/to/your/file.csv")
encrypt("path/to/your/file.csv", output = "path/to/your/file.csv.gpg")

To decrypt a file

decrypt("path/to/your/file.csv.gpg")
decrypt("path/to/your/file.csv.gpg", output = "path/to/your/file.csv")

Installation

To install from CRAN

install.packages("rcrypt")

Note: rcrypt depends on GPG. GPG must be installed before using rcrypt.

Install GPG on Windows

Download and install from http://www.gpg4win.org/. Make sure GPG is located in the PATH. You can test this by running gpg --version from the command line.

Install GPG on Linux

GPG is bundled with most Linux distributions. You can test this by running gpg --version from the command line.

Install GPG on OS X

Download and install from https://gpgtools.org/. You can test if it's installed by running gpg --version from the command line.

News

rcrypt 0.1.1 (2015-09-19)

  • Place single quotes around Gpg4win and GPGTools in the Description.
  • Better code in R/encrypt.r and R/decrypt.r by using --batch flag for password insertion. This requires using shell() instead of system2() for Windows.
  • Add verbosity argument to encrypt() and decrypt() functions.
  • General code review.

rcrypt 0.1.0 (2015-09-05)

  • Initial release
  • Provides functions encrypt() and decrypt()

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("rcrypt")

0.1.1 by Brett Klamer, 4 years ago


http://brettklamer.com/work/rcrypt/


Browse source code at https://github.com/cran/rcrypt


Authors: Brett Klamer [aut, cre]


Documentation:   PDF Manual  


MIT + file LICENSE license


Suggests testthat

System requirements: GnuPG (https://gnupg.org/)


See at CRAN