encryptor

command
v1.5.27 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 8, 2024 License: MIT Imports: 9 Imported by: 0

README

Encryptor

Encrypt messages by asymmetric keys

usage: 
    ./main [e|d] [pubkey-file|privkey-file]
stdin:
    [data-value]EOF

EOF - End of File (Ctrl+D)

Example

Generate keys

make genkey # default key size = 4096 bits
# OR
make genkey N=1024 # with custom set key size

Encrypt/Decrypt

$ echo "hello, world" | ./main e pub.key > encrypted.msg
$ cat encrypted.msg | ./main d priv.key

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL