HomeMogDBMogDB StackUqbar
v2.0

Documentation:v2.0

Supported Versions:

Other Versions:

Encrypt Sensitive Information

Introduction

If you want to fill in the password field when preparing the configuration file, for security reasons, PTK does not allow you to fill in the plaintext information directly in the configuration file, you must use the encrypt command provided by PTK to encrypt the information before filling it in.

The password field in the configuration file contains the following:

Encryption Methods

  • Encrypt the password as a parameter (it is recommended to wrap the password in single quotes to avoid special characters in the password being parsed by shell)

    ptk encrypt 'password'
  • Enter password interactively

    ptk encrypt --stdin
  • Pass the password through the pipe to PTK

    echo 'password' | ptk encrypt --stdin [--disable-prompt]
Copyright © 2011-2024 www.enmotech.com All rights reserved.