https://github.com/moreati/binary2text
Experimenting with string escaping and byte string -> text encodings
https://github.com/moreati/binary2text
Last synced: 7 months ago
JSON representation
Experimenting with string escaping and byte string -> text encodings
- Host: GitHub
- URL: https://github.com/moreati/binary2text
- Owner: moreati
- Created: 2016-01-02T14:47:13.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2017-03-12T18:28:58.000Z (over 8 years ago)
- Last Synced: 2025-03-18T07:47:38.197Z (7 months ago)
- Language: Python
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# binary2text
A silly experiment to show how various string escape and str->str encodings behave
```
$ python3 binary2text.py
Encoding Result Length inc
HTML escape Hello world! 0
URL quote Hello%20world%21 4
URL quote plus Hello+world%21 2
XML escape Hello world! 0
XML quote attribute "Hello world!" 2
reference Hello world! 0
base64 SGVsbG8gd29ybGQh 4
standard SGVsbG8gd29ybGQh 4
urlsafe SGVsbG8gd29ybGQh 4
base32 JBSWY3DPEB3W64TMMQQQ==== 12
base16 48656C6C6F20776F726C6421 12
Ascii85 87cURD]j7BEbo80 3
base85 NM&qnZy