A C++ class for basic Encryption