Lenny Domnitser’s
domnit.org

⇙ Jump to content

explicit

This is a static archive of the domnit.org blog,
which Lenny Domnitser wrote between 2006 and 2009.

Stepic 0.3

After some months of inactivity on my Python steganography project, the Daily Python URL featured Stepic, traffic to this site jumped way up, and Stepic got a bunch of attention on the Web and in my mailbox. A rundown of the interesting tidbits:

This lower-memory code is Stepic 0.3.

>>> list(stepic.encode_imdata([(1, 2, 3), (4, 5, 6), (7, 8, 9), (10, 11, 12)], 'a'))
[(0, 3, 3), (4, 4, 6), (6, 9, 9)]
>>> ''.join(stepic.decode_imdata([(0, 3, 3), (4, 4, 6), (6, 9, 9)]))
'a'


* The Steganographer class is deprecated. Just use the functions; no classes are needed. It's still there, but it will be removed eventually.

Stepic 0.3 can be downloaded from its project page.