String encode(String message) { engine.init(true, utf8ToWords(key)); var result = engine.process(utf8ToWords(message)); engine.reset(); return wordsToUtf8(result); }