EncryptAndSave: Utility to encrypt a clear text with a public key from...

Description Usage Arguments Value Examples

Description

Utility to encrypt a clear text with a public key from previously generated cryptographic key files

Usage

1
EncryptAndSave(clear.pw, pub.k, pwRoot = "SSpw")

Arguments

clear.pw

- the clear text

pub.k

- a public encrypted key

pwRoot

='SSpw'- the root you want for the encrypted file name

Value

the encrypted.pw.filename

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
Fill these in with the timestamped file names
RSAPrvKeyFilename<-my.keys$RSAPrvKeyFilename
RSAPubKeyFilename<-my.keys$RSAPubKeyFilename


key.ring<-LoadKeys(RSAPrvKeyFilename,RSAPubKeyFilename)

clear.pw<-"A secret password"

encrypted.pw.filename<-EncryptAndSave(clear.pw,key.ring$pub.k)

## End(Not run)

StatsResearch/RobsRUtils documentation built on May 9, 2019, 3:04 p.m.