tnt

command module
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

README

NAME

tnt - a program the encrypts/decrypts files using an infinite (with respect to the plaintext) key.

Usage:

tnt [command]

Available Commands:
      completion  generate the autocompletion script for the specified shell
      decrypt     decrypt a TNT encrypted file.  
      encrypt     encrypt plaintext using TNT  
      help        Help about any command
      version     Display version information
Flags:
          --config string         config file (default is <configdir>/tnt/config.ini)
      -h, --help                  help for tnt
      -i, --inputFile string      Name of the plaintext file to encrypt/decrypt. (default "-")
      -o, --outputFile string     Name of the file containing the encrypted/decrypted data.
      -f, --overWriteFile         Overwrite output file if it exists
      -v, --version               version for tnt

Use "tnt [command] --help" for more information about a command.

DESCRIPTION

tnt is an encryption/decryption system that uses an infinite (with respect to the plaintext) key to encrypt the data. The (pseudo-)random generator used by tnt can encrypt approximately 2.5586528327191×1023 bytes before the generated key will repeat itself.

COMMANDS

encrypt

Encrypt plaintext using the TNT Infinite (with respect to the plaintext) Key Encryption System.

Usage:
  tnt encrypt [flags]
Flags:
      -n, --count string   initial block count (default "-1")

The count can be given as a fraction of the maximum number of blocks that can be generated by the encryption engine. Using "SecretKey" as the key and "1/2" as the block count, there are 7.99579010224719×1021 32 byte blocks that can be generated, resulting in a starting block count of 3.9978950511236×1021.

      -h, --help           help for encrypt  
Global Flags:
      -i, --inputFile string     Name of the plaintext file to encrypt/decrypt. (default "-")
      -o, --outputFile string    Name of the file containing the encrypted/decrypted plaintext.
decrypt

decrypt a file encrypted by the TNT Infinite (with respect to the plaintext) Key Encryption System.

Usage:
  tnt decrypt [flags]
Flags:
      -h, --help   help for decrypt
Global Flags:
      -i, --inputFile string      Name of the plaintext file to encrypt/decrypt. (default "-")
      -o, --outputFile string     Name of the file containing the encrypted/decrypted plaintext.
version

Display version and detailed build information for tnt.

Usage:
  tnt version [flags]
Flags:
      -h, --help   help for version

Secret Key

The secret key that is used to encrypt/decrypt the data can be supplied in one (1) of three (3) ways, in order of security:

  1. The program will prompt for the secret key (most secure)
  2. The secret key is passed in via the TNT_SECRET environment variable.
  3. The secret key is passwd as arguments after all the valid options (least secure)

Copyright © 2021 Billy G. Allie

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Documentation

Overview

tnt document

Copyright © 2021 Billy G. Allie <[email protected]>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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