This commit is contained in:
JMARyA 2023-12-05 15:49:42 +01:00
parent 3d14145ca1
commit f703dd76cc
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263
5 changed files with 100 additions and 7 deletions

View file

@ -1,6 +1,6 @@
# Ansible Modules
#wip #todo
#wip #todo #notnow
#todo -> explain modules, sort modules by usage cat

View file

@ -297,4 +297,80 @@ keys = our-website.dat
```
## Tools
#refactor -> i2p_tools (vanity, etc)
There are several tools available [here](https://github.com/PurpleI2P/i2pd-tools).
### keygen
Generate an I2P private key.
#### Usage
Make a EDDSA-SHA512-ED25519 destination key
```shell
./keygen privkey.dat
```
Make an destination key with a certain key type
```shell
./keygen privkey.dat <number>
./keygen privkey.dat <key name>
```
| key name | number |
| ------------------------------------ | ------ |
| DSA-SHA1 | 0 |
| ECDSA-SHA256-P256 | 1 |
| ECDSA-SHA384-P384 | 2 |
| ECDSA-SHA512-P521 | 3 |
| RSA-SHA256-2048 | 4 |
| RSA-SHA384-3072 | 5 |
| RSA-SHA512-4096 | 6 |
| EDDSA-SHA512-ED25519 | 7 |
| GOSTR3410_CRYPTO_PRO_A-GOSTR3411-256 | 9 |
| GOSTR3410_TC26_A_512-GOSTR3411-512 | 10 |
| RED25519-SHA512 | 11 |
### vain
Vanity generation address.
Time to Generate on a 2.70GHz Processor:
| characters | time to generate (approx.) |
| ---------- | -------------------------- |
| 1 | ~0.082s |
| 2 | ~0.075s |
| 3 | ~0.100s |
| 4 | ~0.394s |
| 5 | ~6.343s |
| 6 | ~1m-5m |
| 7 | ~30m |
#### Usage
```shell
./vain pattern [options]
```
## Options
| Option | Description |
| -------------------------- | ----------------------------------- |
| `-r, --reg` | regex instead of text pattern |
| `-t, --threads` | Use this many threads (default all) |
| `-o, --output output_file` | Output file |
| `-m, --multiplymode` | multiple addresses search |
### keyinfo
Prints information about an I2P private key
#### Usage
Print just the b32 address for this key
```shell
./keyinfo privatekey.dat
```
... just the base64 address
```shell
./keyinfo -d privatekey.dat
```
Print all info about the public key
```shell
./keyinfo -v privatekey.dat
```