29 lines
428 B
Markdown
29 lines
428 B
Markdown
<a id="cryptographyutil"></a>
|
||
|
||
# CryptographyUtil
|
||
|
||
### *class* Daisy.CryptographyUtil.SteelPetal(key: str, nonce=None, testData=None)
|
||
|
||
Cryptography utility for encrypting files
|
||
|
||
#### decrypt(data: bytes)
|
||
|
||
Decrypt encrypted binary data
|
||
|
||
data: bytes
|
||
: Data to decrypt
|
||
|
||
#### encrypt(data: bytes)
|
||
|
||
Encrypt binary data
|
||
|
||
data: bytes
|
||
: Data to encrypt
|
||
|
||
#### pad(key: str)
|
||
|
||
Pad key to make it usable
|
||
|
||
key: str
|
||
: User’s plain text key
|