MonoCloud Authentication SDK
    Preparing search index...
    • Encrypts a given string using a secret with AES-GCM.

      Parameters

      • data: string

        The plaintext data to encrypt.

      • secret: string

        The secret used to derive the encryption key.

      Returns Promise<string>

      Base64-encoded ciphertext.