Tweaked comments
Moved iv
Made encryption optional so can just sign base64 messages