Pure Java/J2ME Compression

Further releasing bits of code I have lying around: here’s Compressor.java, a lightweight (J2ME-friendly) range encoding compression algorithm in 4k of bytecode. Released under the LGPL.

Meanwhile on Wikipedia: Charlieplexing, Monte Cazzaza, RE/Search

Lightweight Encryption for Java/J2ME

I’ve got a few useful nuggets of code lying around that I’ve been meaning to open-source for quite a while. One of them is a Java/J2ME implementation of David Wheeler and Roger Needham‘s Tiny Encryption Algorithm. Today I tidied it up and stuck it online. It’s handy if you want a robust cipher in less than 2k of bytecode. You can snag it here.