Added message pad checking to protect from MITM replay attacks; applications should be safe to use this now;