python隐写_Stegano是一个纯Python的隐写模块,提供不同的隐写和隐写分析方法

Stéganô是一个纯Python的隐写模块,支持多种隐写和隐写分析方法。安装后,可以在Python程序中直接导入使用,如LSB隐藏和揭示消息。此外,也可作为命令行工具,用于隐藏和揭示消息,甚至使用埃拉托斯特尼筛法等复杂方式来增加安全性。

Stéganô

68747470733a2f2f696d672e736869656c64732e696f2f707970692f707976657273696f6e732f53746567616e6f2e7376673f7374796c653d666c61742d737175617265

68747470733a2f2f696d672e736869656c64732e696f2f707970692f762f53746567616e6f2e7376673f7374796c653d666c61742d737175617265

68747470733a2f2f696d672e736869656c64732e696f2f707970692f6c2f53746567616e6f2e7376673f7374796c653d666c61742d737175617265

68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f636564726963626f6e686f6d6d652f53746567616e6f2f6d61737465722e7376673f7374796c653d666c61742d737175617265

68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f636564726963626f6e686f6d6d652f53746567616e6f2f6d61737465722e7376673f7374796c653d666c61742d737175617265

68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f636564726963626f6e686f6d6d652f53746567616e6f2e7376673f7374796c653d666c61742d737175617265

68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5361795468616e6b732e696f2d2545322539382542432d3145414544422e7376673f7374796c653d666c61742d737175617265

Stéganô, a pure Python Steganography module.

Steganography is the art and science of writing hidden messages in such a way that no one, apart from the sender and intended recipient, suspects the existence of the message, a form of security through obscurity. Consequently, functions provided by Stéganô only hide messages, without encryption. Steganography is often used with cryptography.

Installation

$ sudo pip install Stegano

You will be able to use Stéganô in your Python programs or as a command line tool.

Usage

A tutorial is available.

Use Stéganô as a library in your Python program

If you want to use Stéganô in your Python program you just have to import the appropriate steganography technique. For example:

>>> from stegano import lsb

>>> secret = lsb.hide("./tests/sample-files/Lenna.png", "Hello World")

>>> secret.save("./Lenna-secret.png")

>>>

>>> clear_message = lsb.reveal("./Lenna-secret.png")

Use Stéganô as a program

Hide and reveal a message

$ stegano-lsb hide -i ./tests/sample-files/Lenna.png -m "Secret Message" -o Lena1.png

$ stegano-lsb reveal -i Lena1.png

Secret Message

Hide the message with the Sieve of Eratosthenes

$ stegano-lsb-set hide -i ./tests/sample-files/Lenna.png -m 'Secret Message' --generator eratosthenes -o Lena2.png

The message will be scattered in the picture, following a set described by the Sieve of Eratosthenes. Other sets are available. You can also use your own generators.

This will make a steganalysis more complicated.

Running the tests

$ python -m unittest discover -v

Contact

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值