String getEncryptedData(String str, String key) { var blockCipher = BlockCipher(TripleDESEngine(), key); return blockCipher.encodeB64(str); }