qrpwd is a command-line tool that allows you to encode and decode textual information with strong encryption using a given password in a QR code. The tool is designed to be secure and convenient, making it ideal for storing sensitive information such as 2-factor authentication (2FA) backup codes.
To decode the QR code online, you can use the following link: https://qrpwd.franzai.com/. Simply upload the test.png
file and enter the password "test" to decode the message.
To install qrpwd, follow these steps:
- Clone the repository or download the source files.
- Navigate to the project directory.
- Run
npm install
to install the dependencies. - Run
npm link
to make it a global command line tool.
To encode a message:
qrpwd encode -m "your message" -p your_password -o output.png
To encode a file:
qrpwd encode -i input.txt -p your_password -o output.png
To decode an encrypted QR code:
qrpwd decode -i input.png -p your_password
The qrpwd
CLI has two commands: encode
and decode
.
The qrpwd encode
command has the following options:
-m
or--message
: Message to encode-i
or--input
: Input file to encode-p
or--password
: Password to encrypt data-o
or--output
: Output QR code file-u
or--unprotected
: Do not use password protection-d
or--debug
: Enable debug mode for error reporting
The qrpwd decode
command has the following options:
-i
or--input
: Input QR code file-p
or--password
: Password to decrypt data-s
or--silent
: Suppress console output-o
or--output
: Output decoded data file-d
or--debug
: Enable debug mode for error reporting
Both commands also have a help
option that displays help for the command.
For more information, refer to the GitHub repository.
Here are some possible use cases for qrpwd:
- Creating QR codes for events or promotions that require a password for access.
- Generating QR codes for Wi-Fi networks that require a password for access.
- Creating QR codes for password protected contact information that can be easily shared with others.
- Generating QR codes for URLs that require a password for access.
- Creating QR codes for loyalty programs that require a password for access.
- Generating QR codes for surveys or feedback forms that require a password for access.
To serve qrpwd-web locally on port 3000:
If you have Python installed, you can start a simple HTTP server.
-
Navigate to the directory containing
index.html
, usually the root qrpwd directory -
Run the following command:
python -m http.server 3000
For Python 2.x, use:
python -m SimpleHTTPServer 3000
If you prefer Node.js, you can use the http-server
package.
-
Install
http-server
globally (if not installed):npm install -g http-server
-
Navigate to the directory containing
index.html
. -
Run the following command:
http-server -p 3000
The server will start at http://localhost:3000
. Navigate to this URL in your web browser to view the project.