MCPcopy Create free account
hub / github.com/MearaY/StegaPy / __init__

Method __init__

StegaPy/config.py:30–35  ·  view source on GitHub ↗

使用关键字参数初始化配置信息。

(self, **kwargs)

Source from the content-addressed store, hash-verified

28 ENCRYPTION_ALGORITHM = "encryptionAlgorithm"
29
30 def __init__(self, **kwargs):
31 """使用关键字参数初始化配置信息。"""
32 self.use_compression = kwargs.get('use_compression', True)
33 self.use_encryption = kwargs.get('use_encryption', False)
34 self.password = kwargs.get('password', None)
35 self.encryption_algorithm = kwargs.get('encryption_algorithm', 'AES128')
36
37 def is_use_compression(self):
38 """判断当前是否启用了数据压缩功能。"""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected