encryptIt: Encrypt a character and decrypt a raw vector

Description Usage Arguments Value Examples

Description

It calls a builtin algorithm to encrypt a character or decrypt a raw vector. If x is not of the encrypt class, the value will not be decrypted.

Usage

1
2
3
4
5

Arguments

x

the raw vector to decrypt

...

other arguments.

mode

character, 'ECB" or 'CBC'. Default 'CBC', which is more secure.

IV

NULL or a numeric vector, the initial vector for 'CBC' or initial counter for 'CTR' mode in digest::AES(). It is bypassed when mode == 'ECB'. Default NULL.

Value

invisible

Examples

1
2
3
4
5
6
7
8
## Not run: 
encrypt_it('my key')

## End(Not run)
## Not run: 
decryptIt("Pwd")

## End(Not run)

madlogos/aseskit documentation built on June 26, 2019, 12:17 a.m.