Enforce key lengths and remove old encryption.