Frodo Library - v4.0.0-10
    Preparing search index...

    Type Alias IdmCrypto

    type 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;
    }
    Index

    Methods

    • Decrypt a value

      Parameters

      • script: string

      Returns Promise<any>

      a promise resolving to the decrypted value

    • Decrypt a map of values

      Parameters

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

        map of values to decrypt

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

      a promise resolving to a map of decrypted values

    • Encrypt a value

      Parameters

      • value: any

        value to encrypt

      Returns Promise<any>

      a promise resolving to the encrypted value

    • Encrypt a map of values

      Parameters

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

        map of values to encrypt

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

      a promise resolving to a map of encrypted values

    • Test if a value is encrypted

      Parameters

      • value: any

        value to test

      Returns boolean

      true if the value is encrypted, false otherwise