Steganography.py 文件源码

python
阅读 26 收藏 0 点赞 0 评论 0

项目:Steganography 作者: Ludisposed 项目源码 文件源码
def retrieve_lsb(data, magic):
    '''
    A method that retrieves the least significant bits of the picture

    Args:
        data     (list): The list representation of the image
        magic    (str) : The password

    Returns:
        The list representation of the image with retrieved text from random lsb's
    '''
    print '[*] Retrieving message from image'

    retrieve_range = range(data.size)
    if not magic is None:
        random.seed(generate_seed(magic))
        retrieve_range = random_ints(data.size)

    return retrieve(data, retrieve_range)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号