Thisscripttakesafileordirectroyasinput,usestarifadirectoryandGPGAES256symmetricencryptionwiththepasswordyouprovideandaddsittoIPFSandreturnstheIPFShash.
IusethisonaMacbookProwithGPG.
USAGE:AddSingleFile:./ipfs-add-from-encrypted.py-itest.txt-nSecrets.OutFileencryptedandaddedtoIPFSwiththishashQmYjK5jHgYSyeyKZqDZyLCzrziphB18wuM93mXtySEryD1AddDirectory:./ipfs-add-from-encrypted.py-i/home/testing/stuff-nStuff.OutFileencryptedandaddedtoIPFSwiththishashQmYjK5jHgYSyeyKZqDZyLCzrziphB18wuM93mXtySEryD1Help:usage:ipfs-add-from-encrypted.py[-h]-iINPUT-nNAMEEncryptfile/directoryandaddittoIPFSoptionalarguments:-h,--helpshowthishelpmessageandexit-iINPUT,--inputINPUTFile.txtorDirectory-nNAME,--nameNAMESetencryptedoutputfilename
评论