We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.

Hash

From Esolang
Jump to navigation Jump to search

Hash is an esolang that executes programs based on the hashed string from the program.

Language overview

At the start, it takes the program from the user input and hashes it with SHA-256. From there, each character is mapped to brainf*** code with the following rules:

Character Command
"0" <
"1" >
"2" +
"3" -
"4" .
"5" ,
"6" [
"7" ]
Any other character .

After the characters are mapped, the resulted Brainf*** code is executed.

Examples

XKCD Random Number

//an program that somehow creates an hash that starts with 2222631222071263122220714 and does not contain numbers 0-7 after that

Interpeters/Compilers

WIP