加密从来没有这么容易过!
cryptit的Python项目详细描述
cryptit是一个简单而强大的跨平台加密工具,可以用最简单的方式保护您的数据不受其他人(如nsa、政府、光照派、big bro等)的攻击。
加密文件的加密安全基于CBC mode中的Advanced Encryption Standard(aes)算法,密钥长度为256位。
要使用cryptit,您需要在个人计算机上安装python和pip,生成强会话密码(对于这个步骤,您可以在xkcd站点上阅读有用的文章,这非常重要),然后阅读下面的说明。
它是如何工作的?
您可以选择启动程序的模式[加密或解密],并将路径作为参数传递到目标文件或目录。之后,生成强密码并在程序中键入该密码。然后cryptit计算密码的散列(SHA-3256),并在cbc模式下将其用作aes-256的密钥。
Encryption has never been so easy!
安装
Pypi
要安装cryptit,请在终端中运行此命令:
$ pip install cryptit
这是安装cryptit的首选方法,因为它总是安装最新的稳定版本。
源文件
如果您从GitHub或您自己的fork下载或克隆了源代码,则可以运行以下命令安装cameo进行开发:
$ git clone https://github.com/KKStudLab/cryptit.git $ cd cryptit $ vitualenv --python=python[version] venv $ source venv/bin/active $ pip install --editable .
注意:不要忘记“sudo”!
基本用法
可用命令列表:
$ cryptit -h usage: cryptit [-h][-e][-d][path] positional arguments: path path to target file or directory optional arguments: -h, --help show this help message and exit -e, --encrypt encryption mode [by default] -d, --decrypt decryption mode
加密模式
若要加密PC上的文件,请打开终端并键入以下命令,使用-e选项并仅输入目标文件或目录的路径。
root@kali:~/Pictures$ cryptit -e . [*] Start time: 2017-09-05_21-36-30 [*] CryptIt mode: Encryption(AES-256 CBC mode) [*] Path: . [!] Enter your password: [#] Encrypting files: 3it [00:00, 47.33it/s] [*] Encrypting was successful!! [*] Enctyption time: 0.0646049976349 seconds [*] Print archive info(y/n): y Archive info: (cryptit_2017-09-05_21-36-30.zip) Screenshot from 2017-08-18 21-47-25.png.aes [!] Modified: 2017-09-05 21:36:32 [!] System: 3 (0 = Windows, 3 = Unix) [!] ZIP version: 20 [!] Compressed: 244264 bytes [!] Uncompressed: 244264 bytes Wallpapers/36571921725_64b1d675cf_k.jpg.aes [!] Modified: 2017-09-05 21:36:32 [!] System: 3 (0 = Windows, 3 = Unix) [!] ZIP version: 20 [!] Compressed: 666952 bytes [!] Uncompressed: 666952 bytes
解密模式
root@kali:~/Pictures$ cryptit -d cryptit_2017-09-05_21-36-30.zip [*] Start time: 2017-09-05_21-48-36 [*] CryptIt mode: Decryption(AES-256 CBC mode) [*] Path: cryptit_2017-09-05_21-36-30.zip [!] Enter your password: [#] Decrypting files: 2it [00:00, 102.09it/s] [*] Decrypting was successful!! [*] Dectyption time: 0.0205860137939 seconds [!] Output dir: /Pictures/cryptit_2017-09-05_21-36-30
错误、问题和贡献
如果您发现bugs或有suggestions关于改进模块,请不要犹豫联系us。