Popularity
1.9
Growing
Activity
2.0
-
27
2
2

Programming language: Go
License: MIT License
Tags: Command Line     Standard CLI    

go-andotp alternatives and similar packages

Based on the "Standard CLI" category.
Alternatively, view go-andotp alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of go-andotp or a related project?

Add another 'Standard CLI' Package

README

go-andotp

CLI program to encrypt/decrypt andOTP files.

Installation

$ go get github.com/grijul/go-andotp

Usage

Usage: go-andotp -i <INPUT_FILE> {-e|-d} [-o <OUT_FILE>] [-p PASSWORD]

  -d    Decrypt file
  -e    Encrypt file.
  -i string
        Input File
  -o string
        Output File. If no file is provided, output is printed to STDOUT
  -p string
        Encryption Password. This option can be skipped to get password prompt.

Examples

  • Encrypt JSON file (Password is asked after hitting Enter. Password is not echoed) sh $ go-andotp -e -i file.json -o file.json.aes
  • Encrypt JSON file (Password is entered through CLI) sh $ go-andotp -e -i file.json -o file.json.aes -p testpass
  • Decrypt JSON file sh $ go-andotp -d -i file.aes.json -o file.json
  • Decrypt JSON file and print json to console sh $ go-andotp -d -i file.aes.json

Using go-andotp as library

go-andotp can be used as library as well. It implements Encrypt() and Decrypt() functions to encrypt/decrypt text (respectively). It's documentation is available at: https://pkg.go.dev/github.com/grijul/go-andotp/andotp

Example usage:

import "github.com/grijul/go-andotp/andotp"

func main() {
    andotp.Encrypt(...)
    andotp.Decrypt(...)
}

License

MIT


*Note that all licence references and agreements mentioned in the go-andotp README section above are relevant to that project's source code only.