fixed encryption base64 encoding bug, +random ivs, + cipher reuse

closes #1