GitHub - PenguinGovernor/goxor: GoXor is a command line tool that encrypts and d...
source link: https://github.com/PenguinGovernor/goxor
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
goxor
GoXor is an encryption method written in the Go programming language, and is based on a xor cipher in conjunction with a one-time pad.
Download and Install
- Install and configure Go for you operating system. See Here
- Once Go is installed and configured, run this command to install the
goxor
tool
go get github.com/penguingovernor/goxor
Testing
To ensure that installation went smoothly run the go test
tool
go test -v github.com/penguingovernor/goxor/xor
Documentation
After installing, you can use goxor help
to get documentation:
goxor help
Running goxor
goxor
has two sub-commands: encrypt and decrypt.
Example:
# Encrypts input hello.txt using a one time pad as the key, 'goxor' as the signature, outputs out.xor and out.xor.key goxor encrypt -i hello.txt # Decrypts input out.xor using out.xor.key as the key, this will output to stdout goxor decrypt -i out.xor -k out.xor.key
The goxor encrypt
command can encrypt files. It supports the following flags:
-
--input=
or-i
: The file to be encrypted. If the file cannot be found then the input is treated as a string. If omittedgoxor encrypt
will read from stdin -
--output=
or-o
: The desired file name to output the encrypted data to. Omitting this flag mode causesgoxor encrypt
to output to out.xor. If the string 'stdout' is passed togoxor encrypt --output
then the encrypted data is written to stdout -
--key_out
or-K
: The desired file name to output the key to. Omitting this flag causesgoxor encrypt
to output to out.xor.key. If the string 'stdout' is passed togoxor encrypt --key_out
then the key is written to stdout -
--signature
or-s
: The file or string to use as the encryption signature. If omitted the stringgoxor
is used as the signature. If stdin is passed then the input from stdin is used as the signature. -
--key
or-k
: The file or string to use as the encryption key. If omitted a one time pad is used as the key. If stdin is passed then the input from stdin is used as the key.
The goxor decrypt
command can decrypt files. It supports the following flags:
-
--input=
or-i
: The file to be decrypted. -
--output=
or-o
: The desired file name to output the decrypted data to. Omitting this flag mode causesgoxor decrypt
to output to stdout. -
--key
or-k
: The file to use as the decryption key.
Recommend
-
254
README.md Curl is a command-line t...
-
35
How do I import a Mendeley library into Zotero? Zotero includes support for directly importing a Mendeley database into Zotero via File → “Import…”, but due to recent changes by Elsevier, the company that produ...
-
7
WeTools: An Elixir Command Line Tool By Tom Hanley on Mar 5, 2018 Within WePay’s tools team, we are always looking for ways to make our engineers more productive...
-
5
turl – Mac Command Line tool for creating smaller URLs Friday, October 26, 2007 I have just released a simple Mac OS X app named “turl”, that provides a command line / shell interface to online URL shortening services (...
-
4
Apple's decision to encrypt data stored in the cloud aligns with trends toward greater cybersecurity safeguards Several security analysts viewed Apple's acquisition of Google's cloud data services a...
-
6
August 14, 2021
-
5
/home/huy/everyday▮<- All posts 0...
-
2
tuimake tuimake(graphical make) is a simple command line tool to use Makefile in interactive way.(Sample Makefile in this repo is used in the below example)
-
5
-
5
Google Messages now encrypts RCS conversations by default / The app encrypts group chats now, too.By Jay Peters, a new...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK