Giter Club home page Giter Club logo

securetotp-cli's Introduction

SecureTOTP-CLI

This is a command-line tool for managing Time-based One-Time Passwords(TOTP). One day, I noticed that the number of configurations in my authenticator app was steadily increasing. Faced with the challenge of managing and backing up these TOTP configurations, I decided to create a solution to store them on my computer. With the assistance of ChatGPT, I quickly developed this tool. The data file is encrypted and stored locally, making it convenient for backup to cloud storage services like OneDrive, Google Drive, etc.

Feature

  • Works with both 6 and 8-digit passwords, tested with GitHub, Hotmail, Google, and Amazon Web Services.
  • Easily imports and exports data in JSON or CSV format.
  • Supports the generation of TOTP configuration URLs (See Key-Uri-Format).
  • Ensures security with AES-256 encryption.
  • Argon2 Hashing, Passwords are securely hashed using the Argon2 algorithm that offers high resistance to both brute-force and side-channel attacks.
  • This program does not require any network connection.

Screenshots

Bash on CentOS

MainWindow

Important Note for Windows Users

Windows Defender False Positive Alert: Due to the use of AES encryption within SecureTOTP-CLI, some Windows users may experience false positive alerts from Windows Defender or other antivirus software. This is a common occurrence with programs utilizing encryption algorithms. As a precautionary measure, I currently do not provide direct builds for the Windows version. If you need a Windows executable, feel free to attempt building the software from the source code yourself.

How to Build

To ensure successful building of the SecureTOTP-CLI, ensure that the Go programming language is installed on your system.

git clone https://github.com/jaco00/SecureTOTP-CLI  
cd SecureTOTP-CLI
go build

Function

Command Line Parameters

  • Passwordless Launch: Start the program without entering a password using -p YourPassword.
  • Specify Storage File: Specify the storage file using -f FileName (default: ~/.securetotp-cli/mytotp.vault).

Commands

  • New: Add a new configuration.
  • Delete: Remove a configuration.
  • Fetch: Retrieve detailed information for a configuration, including the key and code.
  • Update: Modify information for a configuration.
  • List: Display all current configurations.
  • FetchAll: Check all configurations and output codes.
  • Export: Export all configurations to a file.
  • Import: Import configurations from a file. Note: If there are configurations with matching Labels and Issues in both the current setup and the imported file, the imported data will overwrite the current ones.

Security Considerations

  • Quit the App at Any Time: Terminate the application promptly to prevent data leakage in memory.

  • Use Strong Passwords: Encourage users to utilize passwords with a length of 8 characters or more, including a mix of uppercase, lowercase, numbers, and special symbols, to enhance security.

  • Consider KeyFile for Short Passwords: If shorter passwords are necessary, consider using a KeyFile to bolster security.

securetotp-cli's People

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.