mirror of
https://github.com/go-i2p/i2pkeys-converter.git
synced 2025-07-13 03:53:05 -04:00
Add README
This commit is contained in:
47
README.md
47
README.md
@ -1 +1,46 @@
|
||||
# i2pkeys-converter
|
||||
# I2P Keys Converter
|
||||
|
||||
A utility for converting and formatting I2P key files for use with Go I2P libraries.
|
||||
|
||||
## Description
|
||||
|
||||
I2P Keys Converter handles the conversion between I2P binary key files and the two-line text format required by Go I2P libraries. It properly formats keys using I2P's custom Base64 encoding (with '-' and '~' instead of '+' and '/').
|
||||
|
||||
## Installation
|
||||
|
||||
```bash
|
||||
# Clone the repository
|
||||
git clone https://github.com/go-i2p/i2pkeys-converter.git
|
||||
cd i2pkeys-converter
|
||||
|
||||
# Build the binary
|
||||
make build
|
||||
|
||||
# Or build and install to /usr/local/bin
|
||||
make install
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```bash
|
||||
# Convert binary key file to formatted two-line format
|
||||
i2pkeys-converter -in keys.dat -out keys.dat.formatted
|
||||
|
||||
# Check if a file is already in the correct format
|
||||
i2pkeys-converter -in keys.dat -check
|
||||
|
||||
# Format with verbose information about the key
|
||||
i2pkeys-converter -in keys.dat -v
|
||||
```
|
||||
|
||||
## Features
|
||||
|
||||
- Converts between binary I2P key formats and the two-line format
|
||||
- Validates key format correctness
|
||||
- Preserves the proper I2P Base64 encoding
|
||||
- Handles the public/private key extraction and formatting
|
||||
- Provides verbose output with key details
|
||||
|
||||
## License
|
||||
|
||||
This project is licensed under the MIT License - see the LICENSE file for details.
|
Reference in New Issue
Block a user