EmojiEncode (version 0.0.1) | index EmojiEncode.py |
This module encodes and decodes data into partially random Unicode Emoji,
it's like a steganography in message or social network.
~# python3 EmojiEncode.py mytest
<unicode emoji charaters>
~# python3 EmojiEncode.py --html my test
🙭🍹
🙴🍥🍳🙴
~# python3 EmojiEncode.py --html --decode '🙴🍥🍳🙴'
test
~# python3 EmojiEncode.py --decode '<unicode emoji charaters>'
<data encoded>
~#
>>> data = bytes(list(range(256)))
>>> emojis1 = encode(data)
>>> emojis2 = encode(data)
>>> assert emojis1 != emojis2
>>> assert isinstance(emojis1, str)
>>> assert isinstance(emojis2, str)
>>> assert data == decode(emojis1)
>>> assert data == decode(emojis2)
>>> emojis1 = html_encode(data)
>>> emojis2 = html_encode(data)
>>> assert emojis1 != emojis2
>>> assert isinstance(emojis1, str)
>>> assert isinstance(emojis2, str)
>>> assert data == html_decode(emojis1)
>>> assert data == html_decode(emojis2)
~# python3 -m doctest -v EmojiEncode.py
15 tests in 5 items.
15 passed and 0 failed.
Test passed.
~#
Functions | ||
|
Data | ||
__all__ = ['encode', 'decode', 'html_encode', 'html_decode'] __annotations__ = {'html_mapping': typing.Dict[int, typing.List[str]], 'html_mapping_temp': typing.Dict[int, typing.List[str]], 'mapping': typing.Dict[int, typing.List[str]], 'mapping_temp': typing.Dict[int, typing.List[str]]} __author_email__ = 'mauricelambert434@gmail.com' __copyright__ = '\nEmojiEncode Copyright (C) 2023 Maurice Lamber...ome to redistribute it\nunder certain conditions.\n' __description__ = 'This module encodes and decodes data into partia...ike a steganography in message or social network.' __license__ = 'GPL-3.0 License' __maintainer__ = 'Maurice Lambert' __maintainer_email__ = 'mauricelambert434@gmail.com' __url__ = 'https://github.com/mauricelambert/EmojiEncode' |
Author | ||
Maurice Lambert |