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.

SHA256

From Esolang
(Redirected from 47)
Jump to navigation Jump to search

SHA256 is yet another brainfuck derivative created by User:cleverxia and its goal(?) is to create a language where writing interpreters are much harder than writing programs.

An alternate name is 47, which is chosen to intimidate people who make esofish interpreters

How to write in SHA256

You first write a program in brainfuck, split it into 64-bit chunks (padded with "+") and take the SHA256 hash of that then concatenate them together.

for example, +.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+. -> +.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.++++++++++++++++++++++++ -> 79c8f224a23572bbac8dc60dc58dd127ee04ab2d40757816c7dda66927cdeac3

Examples

Hello, World!

8e1b1197c3a1a4104f87cafe9446b9ff6ef6161e7f2fd0af56f984fd38e8c09416a27233b60125433483f80e5d3112f15fc22fc9b6294a1282abdf2db04b86cc

generated from +[-->-[>>+>-----<<]<--<---]>-.>>>+.>>..+++[.>]<<<<.+++.------.<<|-.>>>>+.++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Truth machine

da55c25ddff36003d09a9b07c177a9c9843ca0f079739e1fb3bb8413c88fcdfe

generated from ++++++++[>------<-],[>+>+<<-]>[>[.]]>.++++++++++++++++++++++++++

Interpreter

Notice that cracking SHA-256 is in EXPTIME but not in P, so writing a pracgtical intepreter is impossible.

Translator from brainfuck

I don't have time. You can use any online tool to calculate or use this website for algorithm.