MCPcopy Create free account

hub / github.com/MearaY/StegaPy / functions

Functions196 in github.com/MearaY/StegaPy

↓ 33 callersMethodwrite
(self, data: bytes)
StegaPy/plugin/lsb/lsb_output_stream.py:31
↓ 18 callersMethodread
(self, size: int = -1)
StegaPy/plugin/lsb/lsb_input_stream.py:67
↓ 17 callersMethodget_password
获取当前设置的加密/水印密码。
StegaPy/config.py:53
↓ 14 callersMethodbyte_array_to_image
将字节数组转换为PIL图像
StegaPy/util/image_util.py:15
↓ 12 callersMethodembed_data
将机密信息(Payload)嵌入至载体图像中,并返回隐写后的图像字节流。
StegaPy/StegaPy.py:53
↓ 12 callersMethodget_max_bits_used_per_channel
获取每个通道使用的最大位数
StegaPy/plugin/lsb/lsb_config.py:16
↓ 11 callersMethodget_purposes
获取插件支持的用途
StegaPy/plugin/base.py:44
↓ 9 callersFunction_cli
(*args)
tests/test_e2e.py:161
↓ 9 callersFunction_cover_bytes
(width=256, height=256)
tests/test_e2e.py:28
↓ 8 callersMethodget_data_length
获取数据长度
StegaPy/plugin/lsb/lsb_data_header.py:36
↓ 7 callersFunction_ask_file
(msg: str, must_exist: bool = True)
cli.py:244
↓ 7 callersFunction_read
(path: str)
cli.py:22
↓ 7 callersMethodextract_data
从隐写后的图像数据中提取并还原隐藏的机密信息。
StegaPy/StegaPy.py:89
↓ 7 callersMethodget_encryption_algorithm
获取当前配置的加密算法名称(如 AES128)。
StegaPy/config.py:61
↓ 6 callersMethod_sp
(self, **kwargs)
tests/test_e2e.py:42
↓ 6 callersMethodget_image_pixels
获取图像像素数组
StegaPy/util/image_util.py:156
↓ 6 callersMethodimage_to_byte_array
将PIL图像转换为字节数组
StegaPy/util/image_util.py:111
↓ 6 callersMethodis_use_compression
判断当前是否启用了数据压缩功能。
StegaPy/config.py:37
↓ 6 callersMethodis_use_encryption
判断当前是否启用了数据加密功能。
StegaPy/config.py:45
↓ 5 callersFunction_ask_password
(required: bool = False)
cli.py:261
↓ 5 callersMethodgenerate_signature
生成用于验证的数字水印签名数据。
StegaPy/StegaPy.py:166
↓ 5 callersMethodget_plugin_by_name
根据指定的插件名称获取对应的插件实例。
StegaPy/plugin_manager.py:48
↓ 4 callersFunction_make_stegapy
(plugin, cfg)
tests/test_e2e.py:34
↓ 4 callersFunction_write
(path: str, data: bytes)
cli.py:27
↓ 4 callersMethodcheck_mark
验证目标图像中是否包含指定的数字水印,并返回相关性得分。
StegaPy/StegaPy.py:146
↓ 4 callersMethodembed_mark
将数字水印(签名)嵌入至载体图像中。
StegaPy/StegaPy.py:126
↓ 4 callersMethodload_plugins
初始化并加载系统内置的所有算法插件。
StegaPy/plugin_manager.py:35
↓ 4 callersMethodto_bytes
转换为字节数组
StegaPy/plugin/lsb/lsb_data_header.py:48
↓ 3 callersMethod_decompress_data
使用 gzip 算法对数据进行解压,并包含基础的数据校验。
StegaPy/StegaPy.py:199
↓ 3 callersMethod_inv_wm_subband
从子带中提取水印 提取逻辑: - 嵌入时:使用 abs(flat_data[i]) > threshold 判断 - 提取时:使用 flat_data[i] > threshold 判断(只处理正数系数)
StegaPy/plugin/dwtdugad/dwt_dugad_plugin.py:403
↓ 3 callersMethod_load_signature
从字节数组加载签名 支持两种格式: 1. 序列化格式:包含序列化头部的二进制格式 2. 直接二进制格式:以标记开头的二进制格式
StegaPy/plugin/dwtdugad/dwt_dugad_plugin.py:487
↓ 3 callersMethod_read_bytes
(self, n_bytes: int)
StegaPy/plugin/randlsb/random_lsb_input_stream.py:38
↓ 3 callersMethod_read_bytes
(self, n_bytes: int)
StegaPy/plugin/lsb/lsb_input_stream.py:36
↓ 3 callersMethod_sp
(self, password="wm_test_pass")
tests/test_e2e.py:131
↓ 3 callersMethod_wm_subband
在子带中嵌入水印
StegaPy/plugin/dwtdugad/dwt_dugad_plugin.py:395
↓ 3 callersMethoddecrypt
解密数据
StegaPy/util/crypto_util.py:87
↓ 3 callersMethodextract_data
从隐写数据中提取消息
StegaPy/plugin/base.py:63
↓ 3 callersMethodextract_msg_filename
从隐写数据中提取消息文件名
StegaPy/plugin/base.py:58
↓ 3 callersMethodfrom_bytes
从字节数组解析数据头 Args: data: 字节数组 config: StegaPyConfig配置对象(会被更新) Returns: LSBDataHead
StegaPy/plugin/lsb/lsb_data_header.py:98
↓ 3 callersMethodget_high_watermark_level
获取高水印阈值
StegaPy/plugin/base.py:83
↓ 3 callersMethodpassword_hash
计算密码哈希值
StegaPy/util/common_util.py:34
↓ 3 callersMethodset_image_pixels
设置图像像素
StegaPy/util/image_util.py:161
↓ 2 callersMethod_compress_data
使用 gzip 算法对数据进行压缩。
StegaPy/StegaPy.py:195
↓ 2 callersFunction_make_lsb_plugin
(algo: str, bits: int, password: str, compress: bool, encrypt: bool)
cli.py:33
↓ 2 callersMethod_save_signature
保存签名到字节数组 使用二进制格式保存签名数据。 格式:标记 + watermark_length + wavelet_filter_method + filter_id + decomposition_level +
StegaPy/plugin/dwtdugad/dwt_dugad_plugin.py:464
↓ 2 callersMethod_sp
(self, **kwargs)
tests/test_e2e.py:98
↓ 2 callersFunctioncmd_embed
(args)
cli.py:55
↓ 2 callersFunctioncmd_extract
(args)
cli.py:76
↓ 2 callersFunctioncmd_wm_embed
(args)
cli.py:96
↓ 2 callersFunctioncmd_wm_generate_sig
(args)
cli.py:134
↓ 2 callersFunctioncmd_wm_verify
(args)
cli.py:112
↓ 2 callersMethodcreate_config
创建默认配置
StegaPy/plugin/base.py:105
↓ 2 callersMethodencrypt
加密数据
StegaPy/util/crypto_util.py:55
↓ 2 callersMethodforward_dwt
执行正向小波变换 Args: image_data: 2D numpy数组,图像数据 wavelet: 小波基名称,默认'db1'(Daubechies 1) level: 分
StegaPy/util/dwt_util.py:13
↓ 2 callersMethodgenerate_random_image
生成随机图像
StegaPy/util/image_util.py:131
↓ 2 callersMethodget_data_header
(self)
StegaPy/plugin/randlsb/random_lsb_input_stream.py:78
↓ 2 callersMethodget_data_header
(self)
StegaPy/plugin/lsb/lsb_input_stream.py:71
↓ 2 callersMethodget_diff
获取原始图像和隐写图像的差异
StegaPy/plugin/base.py:91
↓ 2 callersMethodget_filename
获取文件名
StegaPy/plugin/lsb/lsb_data_header.py:40
↓ 2 callersMethodget_max_header_size
获取最大数据头大小
StegaPy/plugin/lsb/lsb_data_header.py:170
↓ 2 callersMethodget_yuv_from_image
将RGB图像转换为YUV色彩空间
StegaPy/util/image_util.py:167
↓ 1 callersFunction_ask_dir
(msg: str)
cli.py:255
↓ 1 callersMethod_create_signature_from_message
从消息创建签名(用于数据隐藏模式)
StegaPy/plugin/dwtdugad/dwt_dugad_plugin.py:432
↓ 1 callersMethod_derive_key
从密码派生密钥
StegaPy/util/crypto_util.py:44
↓ 1 callersMethod_embed
(self, data: bytes)
StegaPy/plugin/randlsb/random_lsb_output_stream.py:46
↓ 1 callersMethod_embed
(self, data: bytes)
StegaPy/plugin/lsb/lsb_output_stream.py:38
↓ 1 callersFunction_header
()
cli.py:237
↓ 1 callersMethod_read_one_bit
(self)
StegaPy/plugin/randlsb/random_lsb_input_stream.py:61
↓ 1 callersMethod_read_one_bit
(self)
StegaPy/plugin/lsb/lsb_input_stream.py:55
↓ 1 callersFunctionbuild_parser
()
cli.py:148
↓ 1 callersMethodcheck_mark
检查水印相关性
StegaPy/plugin/base.py:72
↓ 1 callersFunctiondata_hiding_ui
数据隐藏界面
app.py:125
↓ 1 callersMethodembed_data
嵌入数据到封面图像
StegaPy/plugin/base.py:52
↓ 1 callersMethodflush
(self)
StegaPy/plugin/randlsb/random_lsb_output_stream.py:42
↓ 1 callersMethodflush
(self)
StegaPy/plugin/lsb/lsb_output_stream.py:34
↓ 1 callersMethodgenerate_signature
生成签名数据(用于水印)
StegaPy/plugin/base.py:68
↓ 1 callersMethodget_channel_bits_used
获取每个通道使用的位数
StegaPy/plugin/lsb/lsb_data_header.py:44
↓ 1 callersMethodget_diff
计算并获取原始载体图像与隐写后图像之间的视觉差异。
StegaPy/StegaPy.py:184
↓ 1 callersMethodget_high_watermark_level
获取高水印阈值
StegaPy/plugin/dwtdugad/dwt_dugad_plugin.py:359
↓ 1 callersMethodget_image
(self)
StegaPy/plugin/randlsb/random_lsb_output_stream.py:74
↓ 1 callersMethodget_image
(self)
StegaPy/plugin/lsb/lsb_output_stream.py:59
↓ 1 callersMethodget_image_from_yuv
将YUV色彩空间转换回RGB图像
StegaPy/util/image_util.py:180
↓ 1 callersMethodget_low_watermark_level
获取低水印阈值
StegaPy/plugin/base.py:87
↓ 1 callersMethodget_low_watermark_level
获取低水印阈值
StegaPy/plugin/dwtdugad/dwt_dugad_plugin.py:363
↓ 1 callersMethodget_watermark_correlation
获取水印相关性
StegaPy/plugin/base.py:78
↓ 1 callersMethodinverse_dwt
执行逆向小波变换 Args: coeffs: 小波系数列表 wavelet: 小波基名称 Returns: 重构后的图像数据
StegaPy/util/dwt_util.py:29
↓ 1 callersFunctionmain
()
cli.py:194
↓ 1 callersFunctionmain
主函数
app.py:40
↓ 1 callersMethodread
(self, size: int = -1)
StegaPy/plugin/randlsb/random_lsb_input_stream.py:74
↓ 1 callersFunctionrun_interactive
()
cli.py:225
↓ 1 callersMethodset_encryption_algorithm
指定运行时所需的加密算法。
StegaPy/config.py:65
↓ 1 callersMethodset_use_compression
设置是否启用数据压缩。
StegaPy/config.py:41
↓ 1 callersMethodset_use_encryption
设置是否启用数据加密。
StegaPy/config.py:49
↓ 1 callersFunctionwatermarking_ui
数字水印界面
app.py:317
↓ 1 callersMethodwrite
(self, data: bytes)
StegaPy/plugin/randlsb/random_lsb_output_stream.py:39
Method__init__
使用关键字参数初始化配置信息。
StegaPy/config.py:30
Method__init__
初始化异常
StegaPy/exceptions.py:11
Method__init__
初始化 StegaPy 实例,绑定核心插件与系统配置。
StegaPy/StegaPy.py:35
Method__init__
初始化插件
StegaPy/plugin/base.py:36
Method__init__
初始化DWT Dugad插件
StegaPy/plugin/dwtdugad/dwt_dugad_plugin.py:48
next →1–100 of 196, ranked by callers