Class that can encrypt and decrypt data as well as add base64 encoding and HTML encoding. The encryption is determined by the pin number passed.