File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 22CLI program to encrypt/decrypt [ andOTP] ( https://github.com/andOTP/andOTP ) files.
33
44## Installation
5- ```
5+ ``` sh
66$ go get github.com/grijul/go-andotp
77```
88
99## Usage
10- ```
10+ ``` sh
1111Usage: go-andotp -i < INPUT_FILE> {-e| -d} [-o < OUT_FILE> ] [-p PASSWORD]
1212
1313 -d Decrypt file
@@ -22,19 +22,19 @@ Usage: go-andotp -i <INPUT_FILE> {-e|-d} [-o <OUT_FILE>] [-p PASSWORD]
2222
2323## Examples
2424- Encrypt JSON file (Password is asked after hitting ``` Enter ``` . Password is not echoed)
25- ```
25+ ``` sh
2626$ go-andotp -e -i file.json -o file.json.aes
2727```
2828- Encrypt JSON file (Password is entered through CLI)
29- ```
29+ ``` sh
3030$ go-andotp -e -i file.json -o file.json.aes -p testpass
3131```
3232- Decrypt JSON file
33- ```
33+ ``` sh
3434$ go-andotp -d -i file.aes.json -o file.json
3535```
3636- Decrypt JSON file and print json to console
37- ```
37+ ``` sh
3838$ go-andotp -d -i file.aes.json
3939```
4040
You can’t perform that action at this time.
0 commit comments