GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  HPENC (1)

NAME

hpenc - high performance encryption command line utility

CONTENTS

Synopsis
Description
Options
Return Value
Examples
See Also

SYNOPSIS

hpenc [I]options]] < input > output

hpenc [I]options]] -r > output

hpenc psk

hpenc -h

DESCRIPTION

C]hpenc] provides command line API for authenticated encryption algorithms, in particular C]AES-[128|256]-GCM] and C]ChaCha20-Poly1305]. This tool is intended to perform bulk encryption with authentication tags for further data transfer. Unlike C]openssl enc] this tool supports only modern authenticated encryption ciphers providing both secrecy and integrity of input data.

C]hpenc] utility reads input data from standard input and outputs encrypted (or decrypted data) to standard output.

To generate PSK one can use the following syntax:
C]
hpenc psk
]

For pseudo-random generator the following invocation could be used:
C]
hpenc -r
]

OPTIONS

-a I]algorithm]
  Specify algorithm to use: C]aes-128], C]aes-256] or C]chacha20]
-d Decrypt data instead of encryption. PSK must be specified for decryption in a command line
-r Run in pseudo-random generator mode with no input needed
-b I]block_size]
  Use the specified block size instead of the default one (4KB). Use [aq]k[aq] for kilobytes, [aq]m[aq] for megabytes. Maximum block size is 16MB
-c I]count]
  Stop after processing I]count] of blocks. Use [aq]k[aq] for kiloblocks, [aq]m[aq] for megablocks and [aq]g[aq] for gigablocks
-k I]key]
  Use the specified I]key] for encryption/decryption. Key is required for decryption and optional for encryption. The size of PSK is 52 base32 encoded symbols.
-B Encode output or input to base64

RETURN VALUE

On exit C]hpenc] returns C]0] if operation was successfull and an error code otherwise.

EXAMPLES

Generate PSK:
C]
hpenc psk
]

Encrypt data:
C]
echo [aq]data[aq] | hpenc -k 8jc38bntqehs31f3q8j4du4ry88k34ugh6eux6aoggpkbywgok9y > encrypted
]

Decrypt data:
C]
hpenc -k 8jc38bntqehs31f3q8j4du4ry88k34ugh6eux6aoggpkbywgok9y -d < encrypted
]

Run as random number generator:
C]
hpenc -r -b 1M -c 10 > random
]

Securely reset all data on your hard drive:
C]
hpenc -r -b 1M > /dev/hda
]

Move data over the network:
C]
bar -b 16M -s 102400M /dev/vg0/lvol1 | ./hpenc -b 16M -k 8jc38bntqehs31f3q8j4du4ry88k34ugh6eux6aoggpkbywgok9y | nc target 1234
nc -l 1234 | ./hpenc -d -k 8jc38bntqehs31f3q8j4du4ry88k34ugh6eux6aoggpkbywgok9y > /dev/vg0/lvol
]

SEE ALSO

Hpenc documentation and source codes may be downloaded from <https://github.com/vstakhov/hpenc>.

Search for    or go to Top of page |  Section 1 |  Main Index


User Commands HPENC (1)

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.