i2pd-tools: additional I2P utilities

A detailed study of i2pd is worthy of respect. This article is similar in spirit to router administration skills, but focuses on a slightly different but important topic: a toolbox that includes a number of useful utilities. i2pd-tools, ladies and gentlemen!





  1. keygen - key generation





  2. vain - generation of keys from a template (miner of beautiful addresses)





  3. keyinfo - information about keys





  4. b33address - getting an address for an encrypted lysset





  5. regaddr - register a short domain in the .i2p zone





  6. regaddr_3ld - registration of a third-level domain in the .i2p zone





  7. regaddralias - bind short domain to new keys





  8. offlinekeys - using temporary keys for security purposes





  9. routerinfo - information about the router





  10. x25519 - generation of encryption keys





  11. i2pbase64 - base64 encoding and decoding





Compiling utilities

, -. , : , .





: . : git clone --recursive https://github.com/purplei2p/i2pd-tools



. , dependencies.sh



. , C++ make , boost openssl.





, git, g++ make : sudo apt install git g++ make



. Windows – MSYS2, : pacman -S git make mingw-w64-x86_64-gcc



. MSYS2 ( , chmod +x dependencies.sh



). , make



.





: Windows , , , .





keygen

, . . , , - , keygen. : keygen . EDDSA-SHA512-ED25519 ( 7), I2P-. , . , . README.





first a key is created with the default signature type, then with a type of 10
, 10

vain

- keygen ( ). vain (vanitygen). (vanity – «») . : .





. . , , . , , . , -t



(--threads



).





6 , . README. vain EDDSA-SHA512-ED25519 (7), .





keyinfo

- i2pd . , . -, . , .





: -v



– «verbose», ; -d



– «destination», base64, -b



– «b33» («bb32»), ( ).





, (). ( ).





«Destination Hash». , , – , . , , .





b33address

keyinfo -b



. b33address , , base64. ( b33 bb32, ), 11. b33address .





, bb32 keyinfo. , keyinfo. keyinfo , b33address. , , . , , keyinfo, .. b33address keyinfo -b, .





regaddr

«site.i2p» reg.i2p stats.i2p ( – PurpleI2P, – Java-).





: , , . . regaddr ( 2.37.0 i2pd -). : , .





regaddr , : , , , – . . keyinfo -d



. .





, , , . verifyhost, reg.i2p. bash , , ( ).





, verifyhost , .





regaddr_3ld

I2P . , – . - regaddr_3ld.





:





./regaddr_3ld step1 sub_domain.dat sub.domain.i2p > step1.txt
      
      



:





./regaddr_3ld step2 step1.txt domain.dat domain.i2p > step2.txt
      
      



:





./regaddr_3ld step3 step2.txt sub_domain.dat > step3.txt
      
      



step3.txt.





regaddralias

, , regaddralias. , ( ). , .





: .





offlinekeys

I2P - (offline keys), . , , , . , , , . - .





, – , «Offline signature» .





routerinfo

I2P- netDb. . , , RouterInfo (RI). IP- ( ).





-p



( IP-). -f



iptables I2P- ( , ). -6



IPv6 , .





x25519

x25519 – , base64. .





i2pbase64

- , (, ). , . , , I2P base64. base64 I2P : +



-



, /



~



. base64- -, +



/



: (addresshelper).





, . . i2pbase64 i2pd-tools . , , .






famtool : family – . , , zzz ( Java-), family , . , , , , – family . , famtool , .





- ITSOFT.








All Articles