Giter Site home page Giter Site logo

endecrypt's Introduction


Travis build status AppVeyor build status Codecov test coverage

endecrypt

Version: 0.1.0

Encrypt and Decrypt your data

endecrypt is an R package for encrypting and decrypting vectors, cells, lists, columns and data frames.

Installation

devtools::install_github("RevanthNemani/endecrypt")

Usage

The package has the following functions

  • SaveGenKey()
  • LoadKey()
  • Encrypt()
  • Decrypt()
  • EncryptCol()
  • DecryptCol()
  • EncryptDf()
  • DecryptDf()

Below is a minimal reproducable example of how to use this package.

library(endecrypt)

# Generate and Save RSA key pair
# Warning: Use it only once for a project. Generating a new key pair will result in your data 
# loss if already encrypted and your private key was not stored safely.
SaveGenKey(bits = 2048,
              private.key.path = "Encription/private.pem",
              public.key.path = "Encription/public.pem")
              
# Load keys already stored using this function 
LoadKey("Encription/private.pem", Private)

# Encrypt single values
encv <- Encrypt(x = "abc", pub.key = pubkey, encryption.type = "aes256")

# Decrypt the encrypted values
Decrypt(x = encv, prv.key = prvkey, encryption.type = "aes256")

# Encrypt columns or list
encol <- EncryptCol(x = airquality$Ozone, pub.key = pubkey, encryption.type = "aes256")

# Decrypt the encrypted columns or lists
DecryptCol(x = encol, prv.key = prvkey, encryption.type = "aes256")

# Encrypt a data.frame
encdf <- EncryptDf(x = airquality, pub.key = pubkey, encryption.type = "aes256")

# Decrypt the encrypted data.frame
DecryptDf(x = encdf, prv.key = prvkey, encryption.type = "aes256")

Disclaimer

We are not security professionals but have found these functions useful in our day to day projects and we would like to share it with the world.

Authors

Revanth Nemani [email protected]

Aditya Vikram [email protected]

July 2019

endecrypt's People

Contributors

adyviky9 avatar revanthnemani avatar

Stargazers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.