User Tools

Site Tools


Sidebar

Table Of Contents

endurox:v7.5.x:manuals:exencrypt.8

exencrypt

Name

exencrypt — Encrypt string and print the Base64 value to stdout

Synopsis

exencrypt [STRING…]

DESCRIPTION

Program encrypts the STRING value passed on command line. In the result program prints to stdout encrypted value of the string. The encrypted values is base64 string. The debug is configured in standard way as for all other binaries via ndrxdebug.conf or Common Config.

In case if no command line arguments STRING are not passed, data for encryption are asked in interactive way, two times. If inputs does not match, error message is provided and program is terminated with error code. Data input messages are printed to stderr.

Encryption keys which are used for encryption are provided either by using built-in algorithm (username+hostname) hashed with SHA1. Or from vendor specific loaded plugin.

The encryption principles allows to encrypt the sensitive data and store on disk in PCI/DSS compatible way.

EXAMPLE

Single string encryption:

$ exencrypt 'HELLO WORLD'
AAAAC196L/d4Sj4OC8cSZh2492I=

Two string encryption:

$ exencrypt HELLO WORLD
AAAABbBtKbtIv9BXe1SioTYi5xw=
AAAABRaPhXxibr6ZktcZ6S71i50=

Interactive mode:

$ exencrypt
Enter data to encrypt (e.g. password):
Retype data to encrypt (e.g. password):
AAAABI5qGpDDyBZsqUP8lZeTjI4=

EXIT STATUS

0
Success
1
Failure

BUGS

Report bugs to support@mavimax.com

COPYING

© Mavimax, ltd.