decryptForThisServer | WebHare Platform SDK
WebHare Platform SDK
    Preparing search index...

    Function decryptForThisServer

    • Decrypt data encrypted using encryptForThisServer

      Type Parameters

      • S extends string

      Parameters

      • scope: (keyof ServerEncryptionScopes) | S

        Scope for encryption (must be unique for each Encrypt usage so you can't accidentally mix up calls)

      • text: string
      • options: { nullIfInvalid: true }

      Returns
          | null
          | (
              S extends keyof ServerEncryptionScopes
                  ? ServerEncryptionScopes[S<S>]
                  : unknown
          )

    • Decrypt data encrypted using encryptForThisServer

      Type Parameters

      • S extends string

      Parameters

      • scope: (keyof ServerEncryptionScopes) | S

        Scope for encryption (must be unique for each Encrypt usage so you can't accidentally mix up calls)

      • text: string
      • Optionaloptions: { nullIfInvalid?: boolean }

      Returns S extends keyof ServerEncryptionScopes ? ServerEncryptionScopes[S<S>] : unknown