public static function encrypt(
        HiddenString $plaintext,
        EncryptionKey $secretKey,
        $encoding = Halite::ENCODE_BASE64URLSAFE
    ): string {
        return static::encryptWithAd(
            $plaintext,
            $secretKey,
            '',
            $encoding
        );
    }
public static function encrypt(
        HiddenString $plaintext,
        EncryptionKey $secretKey,
        $encoding = Halite::ENCODE_BASE64URLSAFE
    ): string {
        return static::encryptWithAd(
            $plaintext,
            $secretKey,
            '',
            $encoding
        );
    }
public static function encrypt ( HiddenString $ plaintext , EncryptionKey $ secretKey , $ encoding = Halite :: ENCODE_BASE64URLSAFE ) : string { return static :: encryptWithAd ( $ plaintext , $ secretKey , '' , $ encoding ) ; }
Encrypt a message using the Halite encryption protocol

(Encrypt then MAC -- xsalsa20 then keyed-Blake2b)
You don't need to worry about chosen-ciphertext attacks.

@param HiddenString $plaintext
@param EncryptionKey $secretKey
@param string|bool $encoding
@return string

@throws CannotPerformOperation
@throws InvalidDigestLength
@throws InvalidMessage
@throws InvalidType
@throws \TypeError
Encrypt a message using the Halite encryption protocol