2 ms·
Our company wanted to defend their database. It was shipped as part of product (something like dictionary), so without further protection it was extremely easy
by vbezhenar 9y ago
Our company wanted to defend their database. It was shipped as part of product (something like dictionary), so without further protection it was extremely easy to dump the database. I decided to encrypt the database. But obviously smart enough person could just disassemble the encryption and extract the key. So I implemented my own simple JavaScript-like programming language, built a compiler for that language which compiles it to some complicated bytecode, implemented a VM for this bytecode and implemented encryption routines using that language. Now to reverse-engineer encryption cracker must write his own disassembler and I tried hard to defend against hacker just calling the blob as a whole (though probably it was the best attack vector if you ask me). While this defense wasn't perfect, AFAIK it worked and this compiler and VM project was very interesting for me, especially because I used Scala for compiler and it turned out as a perfect language for this task.