MonoCloud Authentication SDK
    Preparing search index...
    • Decrypts an encrypted string using a secret with AES-GCM.

      Parameters

      • encrypted: string

        The ciphertext to decrypt.

      • secret: string

        The secret used to derive the decryption key.

      Returns Promise<string | undefined>

      Decrypted plaintext string or undefined if decryption fails.