此软件包旨在为用户提供一种执行一次性pad加密、caeser密码或vigenere密码的快速而简单的方法。它将与python 2或3一起工作。
CryptographyKit的Python项目详细描述
作者:marc santiago
电子邮件:marcantonysanti@gmail.com
此工具包旨在为用户提供快速简单的加密形式。一些模块,如
hideMessageImageandcaesarCipher,虽然不是很强的加密形式,但为了方便使用和娱乐起见,我们提供了它们:)。
用法:
需要外部模块
皮尔,并且easygui
所有这些模块都可以通过pip命令安装
[pip install pyminizip]或[pip3 install pyminizip]
[pip install should]或[pip3 install should]
[pip install easygui]或[pip3 install easygui]
import模块
-----------------------------
-----------------------------
来自CryptoKit.OneTimePadEncryption导入加密数据,解密数据
来自CryptoKit.CaesarCipher导入C U加密,C U解密,Brute Force解密
来自CryptoKit.VigenereCipher导入V U加密,V U解密,v_dictionaryattack
来自cryptokit.hideMessageImageImport hide_or_show_message
>方法说明:
-----------------------------
-----------------------------
-
encrypt_数据(纯文本,string_file_mode=false)-->;将纯文本作为字符串
或文本文档,并返回密钥文件和加密的消息文件。日期时间用于将密钥文件与加密的消息文件匹配。
它将返回
纯文本文档,前提是提供了正确的密钥。
密钥必须在1-26的范围内。
c_decripher(cypher_text,key,cypher_text_file_mode=false)-->;密码文本由提供的密钥移位。钥匙必须在1-26范围内。密钥必须与用于加密其他
智能垃圾数据的密钥相同。
brute_force_decrypt(cypher_text,cypher_text_file_mode=false)-->;这将尝试返回使用的
密钥和加密文本的纯文本转换。
模块-->;vigenerecipher
----------
v_encipher(纯文本,密钥,文件模式=false)-->;纯文本使用给定的密钥进行加密。提供的密钥必须在只包含英文字符的字符串中。
v_decrippher(cipher_text,key,file_mode=false)-->;使用用于加密消息的密钥来解密密码文本。提供的密钥必须在只包含英文
字符的字符串中。
v_dictionaryattack(cipher_text,dictionary_file=“helper_files/dictionary.txt”,file_mode=false,
percent_match=55)-->;函数,它将密码文本作为字符串或文本文件,并尝试
返回纯文本消息。注意事项:dictionary_file参数传递了一个默认的
dictionary,用于尝试破解密码文本。Percent_Match Arugument用于指定解密消息与英语的接近程度,有关详细信息,请参阅helper_files文件夹中的detectenglish模块。
这将提示用户键入消息它将返回一个png文件,其中隐藏有您的消息。如果要解密png文件,请再次运行该函数。
---------------------------------
--------
文件名:otp_utility.py
文件位置:https://github.com/marcsantiago/cryptographykit/blob/master/otp_utility.py
文件名:c_cipher_utility.py
文件位置:https://github.com/marcsantiago/cryptographykit/blob/master/c_cipher_utility.py
文件名:v_cipher_utility.py
文件位置:https://github.com/marcsantiago/cryptographykit/blob/master/v_cipher_utility.py
电子邮件:marcantonysanti@gmail.com
此工具包旨在为用户提供快速简单的加密形式。一些模块,如
hideMessageImageandcaesarCipher,虽然不是很强的加密形式,但为了方便使用和娱乐起见,我们提供了它们:)。
用法:
需要外部模块
皮尔,并且easygui
所有这些模块都可以通过pip命令安装
[pip install pyminizip]或[pip3 install pyminizip]
[pip install should]或[pip3 install should]
[pip install easygui]或[pip3 install easygui]
import模块
-----------------------------
-----------------------------
来自CryptoKit.OneTimePadEncryption导入加密数据,解密数据
来自CryptoKit.CaesarCipher导入C U加密,C U解密,Brute Force解密
来自CryptoKit.VigenereCipher导入V U加密,V U解密,v_dictionaryattack
来自cryptokit.hideMessageImageImport hide_or_show_message
>方法说明:
-----------------------------
-----------------------------
encrypt_数据(纯文本,string_file_mode=false)-->;将纯文本作为字符串
或文本文档,并返回密钥文件和加密的消息文件。日期时间用于将密钥文件与加密的消息文件匹配。
它将返回
纯文本文档,前提是提供了正确的密钥。
密钥必须在1-26的范围内。
c_decripher(cypher_text,key,cypher_text_file_mode=false)-->;密码文本由提供的密钥移位。钥匙必须在1-26范围内。密钥必须与用于加密其他
智能垃圾数据的密钥相同。
brute_force_decrypt(cypher_text,cypher_text_file_mode=false)-->;这将尝试返回使用的
密钥和加密文本的纯文本转换。
模块-->;vigenerecipher
----------
v_encipher(纯文本,密钥,文件模式=false)-->;纯文本使用给定的密钥进行加密。提供的密钥必须在只包含英文字符的字符串中。
v_decrippher(cipher_text,key,file_mode=false)-->;使用用于加密消息的密钥来解密密码文本。提供的密钥必须在只包含英文
字符的字符串中。
v_dictionaryattack(cipher_text,dictionary_file=“helper_files/dictionary.txt”,file_mode=false,
percent_match=55)-->;函数,它将密码文本作为字符串或文本文件,并尝试
返回纯文本消息。注意事项:dictionary_file参数传递了一个默认的
dictionary,用于尝试破解密码文本。Percent_Match Arugument用于指定解密消息与英语的接近程度,有关详细信息,请参阅helper_files文件夹中的detectenglish模块。
这将提示用户键入消息它将返回一个png文件,其中隐藏有您的消息。如果要解密png文件,请再次运行该函数。
--------
文件名:otp_utility.py
文件位置:https://github.com/marcsantiago/cryptographykit/blob/master/otp_utility.py
文件名:c_cipher_utility.py
文件位置:https://github.com/marcsantiago/cryptographykit/blob/master/c_cipher_utility.py
文件名:v_cipher_utility.py
文件位置:https://github.com/marcsantiago/cryptographykit/blob/master/v_cipher_utility.py