zb3 / malbolge-tools

Web based Malbolge interactive interpreter and a collection of code generators.
18 stars 2 forks source link

malbolge-tools

This is a set of Malbolge code generators (for a given text) and a web-based GUI for the interactive interpreter and these generators, made using the malbolge-vm library.

You can access the GUI here

It also contains examples of code such as:

Many of these sample programs were developed using the LMAO assembler (which is awesome and GPL btw), and source code (assembly) for these examples is provided.

Three code generators

There are basically 3 different types of code generators for Malbolge:

Development

The GUI version placed in dist directory works out of the box. If you wish to modify this or use CLI version, install dependencies first:

npm install

Then in order to build the GUI version:

npm run build

CLI generators can be accessed like this:

node cli/gen-fixed.js
node cli/gen-bor.js
node cli/gen-linear.js

Note on examples

There are two interesting examples included:

Crackme

Can you crack the code just by analysing the source? It basically checks the character you type and then fires one of two branches depending on the input. The question is - can this be easily cracked (I think so), so that you can see both the key and the resulting message? Of course brute force doesn't count here.

Encryption

Is this stronger than rot13 or plaintext? If so, is it because less people know about this or because it's harder to crack?
It currently works like this:

Of course generating these is very slow and the user has to repeat the key which makes it completely impractical. But the question still remains - how hard would it be to crack?

Obviously if we know the plaintext, we can crack the key very easily.