Skip to content

mwt/hash-viewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

37 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Hash Viewer

You can use this to store entire documents in URLs. It is similar to Hashify but has a simpler presentation, uses LZ-based compression via lz-string, and supports LaTeX math input via MathJaX. It is hosted on GitHub Pages and uses marked for markdown processing.

The page is styled using a modified version of LaTeX.css.

This service is especially useful for sharing text content with simple formatting and math. It can also be useful for storing human readable information on NFC tags. The information opens in a browser, yet will be entirely contained on the tag.

This project is fully client side, so no data is stored on the server. While I cannot read anything written or viewed using this site, the full hashes may be contained in your browser history. Because these hashes technically contain the full content of the page, you should keep this in mind if sharing sensitive data.

The main page where hashes are decoded is 404.html. This exploits the fact that all unknown urls on GitHub Pages are directed to the 404 page. By using 404, we ensure that every hash url is sent to this page.

The code is very short and simple. Decoding of hashes is handled by 404.js and encoding is handled by index.js.

About

A tool for sharing Markdown and LaTeX formatted math hosted on GitHub Pages โ€” so no backend ๐Ÿ˜Ž

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published