Revised the encryption library to demand protobuf