IdmCrypto: {
    decrypt(script: string): Promise<any>;
    decryptMap(map: {
        [key: string]: any;
    }): Promise<{
        [key: string]: any;
    }>;
    encrypt(value: any): Promise<any>;
    encryptMap(map: {
        [key: string]: any;
    }): Promise<{
        [key: string]: any;
    }>;
    isEncrypted(value: any): boolean;
}

Type declaration

  • decrypt:function
    • Decrypt a value

      Parameters

      • script: string

      Returns Promise<any>

      a promise resolving to the decrypted value

  • decryptMap:function
    • Decrypt a map of values

      Parameters

      • map: {
            [key: string]: any;
        }

        map of values to decrypt

        • [key: string]: any

      Returns Promise<{
          [key: string]: any;
      }>

      a promise resolving to a map of decrypted values

  • encrypt:function
    • Encrypt a value

      Parameters

      • value: any

        value to encrypt

      Returns Promise<any>

      a promise resolving to the encrypted value

  • encryptMap:function
    • Encrypt a map of values

      Parameters

      • map: {
            [key: string]: any;
        }

        map of values to encrypt

        • [key: string]: any

      Returns Promise<{
          [key: string]: any;
      }>

      a promise resolving to a map of encrypted values

  • isEncrypted:function
    • Test if a value is encrypted

      Parameters

      • value: any

        value to test

      Returns boolean

      true if the value is encrypted, false otherwise