1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: package stepic</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head><body bgcolor="#f0f0f8">
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong>stepic</strong></big></big> (version 0.5.0)</font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/usr/lib/python3/dist-packages/stepic/__init__.py">/usr/lib/python3/dist-packages/stepic/__init__.py</a></font></td></tr></table>
<p><tt>Python image steganography<br>
<br>
Stepic hides arbitrary data inside Pillow images.<br>
<br>
Stepic uses the Python Image Library (Pillow)<br>
(apt: python3-pil, web: <https://pypi.org/project/Pillow/>).</tt></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#aa55cc">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Package Contents</strong></big></font></td></tr>
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top></td><td width="25%" valign=top></td><td width="25%" valign=top></td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ee77aa">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
<td width="100%"><dl>
<dt><font face="helvetica, arial"><a href="builtins.html#object">builtins.object</a>
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="stepic.html#Steganographer">Steganographer</a>
</font></dt></dl>
</dd>
</dl>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="Steganographer">class <strong>Steganographer</strong></a>(<a href="builtins.html#object">builtins.object</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt><a href="#Steganographer">Steganographer</a>(image)<br>
<br>
deprecated<br> </tt></td></tr>
<tr><td> </td>
<td width="100%">Methods defined here:<br>
<dl><dt><a name="Steganographer-__init__"><strong>__init__</strong></a>(self, image)</dt><dd><tt>Initialize self. See help(type(self)) for accurate signature.</tt></dd></dl>
<dl><dt><a name="Steganographer-decode"><strong>decode</strong></a>(self)</dt></dl>
<dl><dt><a name="Steganographer-encode"><strong>encode</strong></a>(self, data)</dt></dl>
<hr>
Data descriptors defined here:<br>
<dl><dt><strong>__dict__</strong></dt>
<dd><tt>dictionary for instance variables (if defined)</tt></dd>
</dl>
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>list of weak references to the object (if defined)</tt></dd>
</dl>
</td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#eeaa77">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
<td width="100%"><dl><dt><a name="-decode"><strong>decode</strong></a>(image)</dt><dd><tt>extracts data from an image</tt></dd></dl>
<dl><dt><a name="-decode_files"><strong>decode_files</strong></a>(image_in, data_out)</dt><dd><tt>Main function for decoding data from image files.<br>
@param image_in: Filename of image containing embeded data<br>
@param data_out: Filename of text file to write the data<br>
@return: None (data written to disk in data_out)</tt></dd></dl>
<dl><dt><a name="-decode_imdata"><strong>decode_imdata</strong></a>(imdata)</dt><dd><tt>Given a sequence of pixels, returns an iterator of characters<br>
encoded in the image</tt></dd></dl>
<dl><dt><a name="-encode"><strong>encode</strong></a>(image, data)</dt><dd><tt>generates an image with hidden data, starting with an existing<br>
image and arbitrary data</tt></dd></dl>
<dl><dt><a name="-encode_files"><strong>encode_files</strong></a>(image_in, data_in, image_out, format)</dt><dd><tt>Main function for encoding data in image files.<br>
@param image_in: Filename of image in which to embed data<br>
@param data_in: Filename of text file containing data<br>
@param image_out: Output file name<br>
@param format: Format of ouput image, use 'None' to keep the input format<br>
@return: None (image_out written to disk)</tt></dd></dl>
<dl><dt><a name="-encode_imdata"><strong>encode_imdata</strong></a>(imdata, data)</dt><dd><tt>given a sequence of pixels, returns an iterator of pixels with<br>
encoded data</tt></dd></dl>
<dl><dt><a name="-encode_inplace"><strong>encode_inplace</strong></a>(image, data)</dt><dd><tt>hides data in an image</tt></dd></dl>
</td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#55aa55">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
<td width="100%"><strong>__all__</strong> = ('encode_imdata', 'encode_inplace', 'encode', 'decode_imdata', 'decode', 'Steganographer', 'encode_files', 'decode_files')</td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#7799ee">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Author</strong></big></font></td></tr>
<tr><td bgcolor="#7799ee"><tt> </tt></td><td> </td>
<td width="100%">Lenny Domnitser <<a href="http://domnit.org/">http://domnit.org/</a>></td></tr></table>
</body></html>
|