GithubHelp home page GithubHelp logo

pedastep's Introduction

pedastep

Persian Dada Steganographic Poetry utility creates templates to steganographically wrap a Persian piece of text message into a piece of classic Persian poetry.

When steganizing a piece of text, you provide the destination poem rhyme and metre in a metadata file. The metadata file contains a simple JSON object that specifies destination poem rhyme, metre, poem file path, clear text file path, and the intermediate CSV file path. Then invoke the pedastep script like the example below:

$ python3 pedastep.py encrypt metadat/001.json

The encryption part of the utility uses the rhyme as the rotating encryption key. It then uses the metre values to inflate the encrypted message by adding corresponding numbers of spaces between the encrypted letters. This is then written to the intermediate CSV file. The CSV file contains sequences of letters and spaces. You will need to open the CSV file in your editor of choice (LibreOffice Calc, Microsoft Excel, Apple Numbers...) and replace the spaces with letters in such a way that it can be recited as a piece of poetry with the same rhyme and metre. Remember that you can only replace the spaces. If you change any of the letters that the encryption step has produced you will change the encrypted message and will not be able to decrypt the original message afterwards from the final poem. The letters in the rhyme plus their two preceding letters do not fill any of the spaces in the CSV file. The rhyme is added where required without being constrained by the letters in the CSV.

You can place the finished piece of poetry in a separate file from the CSV as plain text so that it can be later decrypted using the same utility.

To decrypt a message previously encrypted using pedastep, create a metadata file (the same json object with values for poem file path, metre, rhyme, and clear text file path) and invoke the pedastep script like the example below:

$ python3 pedastep.py decrypt metadata/001.json

pedastep's People

Contributors

misoboute avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.