All Projects â†’ gabrielstork â†’ pytextcodifier

gabrielstork / pytextcodifier

Licence: MIT License
ðŸ“Ķ Turn your text files into codified images or your codified images into text files.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to pytextcodifier

logfmt
Package logfmt marshals and unmarshals logfmt messages.
Stars: ✭ 156 (+1014.29%)
Mutual labels:  encoder, decoder
png
🖞A full-featured PNG decoder and encoder.
Stars: ✭ 64 (+357.14%)
Mutual labels:  encoder, decoder
bytecodec
A tiny Rust framework for implementing encoders/decoders of byte-oriented protocols
Stars: ✭ 21 (+50%)
Mutual labels:  encoder, decoder
rmarsh
Ruby Marshal 4.8 encoder/decoder in Golang. Why? Who knows.
Stars: ✭ 15 (+7.14%)
Mutual labels:  encoder, decoder
otfed
An OpenType font format encoder & decoder written in OCaml
Stars: ✭ 15 (+7.14%)
Mutual labels:  encoder, decoder
sms
A Go library for encoding and decoding SMSs
Stars: ✭ 37 (+164.29%)
Mutual labels:  encoder, decoder
regXwild
⏱ Superfast ^Advanced wildcards++? | Unique algorithms that was implemented on native unmanaged C++ but easily accessible in .NET via Conari (with caching of 0x29 opcodes +optimizations) etc.
Stars: ✭ 20 (+42.86%)
Mutual labels:  text, strings
Codablecsv
Read and write CSV files row-by-row or through Swift's Codable interface.
Stars: ✭ 214 (+1428.57%)
Mutual labels:  encoder, decoder
online-ethereum-abi-encoder-decoder
A quick online tool to abi-encode and abi-decode constructor arguments used in ethereum's solidity. https://adibas03.github.io/online-ethereum-abi-encoder-decoder/
Stars: ✭ 37 (+164.29%)
Mutual labels:  encoder, decoder
keystore-go
A Go (golang) implementation of Java KeyStore encoder/decoder
Stars: ✭ 119 (+750%)
Mutual labels:  encoder, decoder
BatchEncoder
BatchEncoder is an audio files conversion software.
Stars: ✭ 145 (+935.71%)
Mutual labels:  encoder, decoder
strings-truncation
Truncate strings with fullwidth characters and ANSI codes.
Stars: ✭ 45 (+221.43%)
Mutual labels:  text, strings
Strings
A set of useful functions for transforming strings.
Stars: ✭ 111 (+692.86%)
Mutual labels:  text, strings
urlpack
Pure JavaScript toolkit for data URLs (MessagePack, Base58 and Base62)
Stars: ✭ 51 (+264.29%)
Mutual labels:  encoder, decoder
Enmime
MIME mail encoding and decoding package for Go
Stars: ✭ 246 (+1657.14%)
Mutual labels:  encoder, decoder
png pong
A pure Rust PNG image decoder and encoder based on lodepng.
Stars: ✭ 21 (+50%)
Mutual labels:  encoder, decoder
Xmlschema
XML Schema validator and data conversion library for Python
Stars: ✭ 201 (+1335.71%)
Mutual labels:  encoder, decoder
Codable Diy Kit
A template for creating your own Swift Codable encoders and decoders
Stars: ✭ 207 (+1378.57%)
Mutual labels:  encoder, decoder
Compressed2TXT
File(s)/Folder(s) "Send to" menu .bat ascii encoder with optional password and makecab lzx compression
Stars: ✭ 156 (+1014.29%)
Mutual labels:  text, encoder
Image deionising auto encoder
Noise removal from images using Convolutional autoencoder
Stars: ✭ 34 (+142.86%)
Mutual labels:  encoder, decoder

pytextcodifier

Codify your text files or Python strings.

You can simply:

pip install pytextcodifier

Or you can also:

  1. Clone the repository to your local machine.
  2. Enter the directory.
  3. Download necessary modules/libraries.
git clone https://github.com/gabrielstork/pytextcodifier.git
cd pytextcodifier
pip install -r requirements.txt

About

pytextcodifier allows you transform Python strings or text files (check example.txt and see the text file used to generate the image below) into encoded images like this:

Example

Every image matrix has two 8 digit arrays called stop and identifier (to be precise, the first 16 pixel values in the flattened image matrix). The identifier tells how the code should read the image, showing where the correct characters are located in the matrix. A private image requires a key to correctly extract the text in it, on the other side, if it is a non-private image, the text is extracted directly.

Examples

Public Encoding

Importing Encoder class.

from pytextcodifier import Encoder

Using the content of example.txt.

text = Encoder('example.txt', is_file=True)

Using encode() method with default arguments to actually encode it.

text.encode(size=(250, 250), private=False)

Seeing the generated encoded image (a new window will pop up).

text.show()

Saving it.

text.save('images/public_example.png')

Public Decoding

Importing Decoder class.

from pytextcodifier import Decoder

Instantiating the class passing an image as argument.

image = Decoder('example.png')

Decoding the image.

image.decode()

Seeing the text.

image.show()

Saving the text.

image.save('example.txt')

Private Encoding

Importing Encoder class.

from pytextcodifier import Encoder

Using the content of example.txt.

text = Encoder('example.txt', is_file=True)

Using encode() method setting the private parameter to True.

text.encode(size=(250, 250), private=True)

Saving it. This will save an extra image named 'key_private_example.png', you must use this to get the text correctly when decoding it.

text.save('images/private_example.png')

Private Decoding

Importing Decoder class.

from pytextcodifier import Decoder

Instantiating the class passing an image as argument.

image = Decoder('example.png')

Decoding the image.

image.decode(key='key_private_example.png')

Seeing the text.

image.show()

Saving the text.

image.save('example.txt')

forthebadge forthebadge

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].