public function Encrypt($noncryptedData) {
        $encrypted = mcrypt_encrypt(
                $this->encryptionType, $this->encryptionKey, $noncryptedData, $this->encryptionMode, $this->iv);
        $encoded = base64_encode($encrypted);
        return $encoded;
    }