Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

MShidiq/glasstext

Repository files navigation

glasstext

python module for making invisible text

Glasstext converts a string to spaces and tabs. Make writing as if blank. It's like whitespace programming language.

The algorithm is very simple. The string is converted to ascii decimal then ascii decimal is converted to binary after the binary, number 0 is converted to a space and number 1 is converted to tabs.


Glasstext mengkonversi sebuah string menjadi spasi dan tabs. Membuat tulisan menjadi seolah-olah blank. Ini seperti whitespace programing language.

Algoritmanya sangatlah sederhana. String dikonversi ke ascii decimal lalu ascii decimal dikonversi ke binary setelah jadi binary, angka 0 diubah menjadi spasi dan angka 1 diubah menjadi tabs.

Installing

python setup.py install

Documentation

After the glasstext folder is copied to your project folder, after that you import the glasstext module.

from glasstext import glass
  • read(glasstext, rotate=False)
    Reads the glasstext string into a plain text string

  • write(text, rotate=False)
    Change plain text to glasstext

  • load(filename, rotate=False)
    Load and read glasstext from a file into plain text

  • dump(text, filename, rotate=False)
    Change the plain text into glasstext then make the file

Rotate parameter is to change/rotate the default binary output.

default:

  • 0 is space
  • 1 is tabs

Pros and Cons

  • Pros
    Your string is invisible

  • Cons
    Glasstext is very long string, because it is binary that changed to space and tabs

About

Python module for making invisible text

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

AltStyle によって変換されたページ (->オリジナル) /