Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AesCryptor

Hierarchy

  • AesCryptor

Index

References

Constructors

Properties

Methods

References

Encoding

Re-exports Encoding

Mode

Re-exports Mode

Padding

Re-exports Padding

Constructors

constructor

  • Construct AesCryptor

    Parameters

    Returns AesCryptor

Properties

Private makeOperator

makeOperator: any

Make an operator

param
param
returns

Operator

Private operator

operator: any

Methods

decrypt

  • decrypt(data: string, options?: { encoding: { decode: (str: string | IterableObject) => CryptoJs.lib.WordArray; encode: (wordArray: CryptoJs.lib.WordArray) => string | Uint8Array; name: string }; padding: { name: string; op: PaddingList; pad: (data: CryptoJs.lib.WordArray) => void; unpad: (data: CryptoJs.lib.WordArray) => void } }): string
  • Decrupt string

    Parameters

    • data: string
    • Optional options: { encoding: { decode: (str: string | IterableObject) => CryptoJs.lib.WordArray; encode: (wordArray: CryptoJs.lib.WordArray) => string | Uint8Array; name: string }; padding: { name: string; op: PaddingList; pad: (data: CryptoJs.lib.WordArray) => void; unpad: (data: CryptoJs.lib.WordArray) => void } }
      • encoding: { decode: (str: string | IterableObject) => CryptoJs.lib.WordArray; encode: (wordArray: CryptoJs.lib.WordArray) => string | Uint8Array; name: string }
        • decode: (str: string | IterableObject) => CryptoJs.lib.WordArray
        • encode: (wordArray: CryptoJs.lib.WordArray) => string | Uint8Array
            • (wordArray: CryptoJs.lib.WordArray): string | Uint8Array
            • Parameters

              • wordArray: CryptoJs.lib.WordArray

              Returns string | Uint8Array

        • name: string
      • padding: { name: string; op: PaddingList; pad: (data: CryptoJs.lib.WordArray) => void; unpad: (data: CryptoJs.lib.WordArray) => void }
        • name: string
        • op: PaddingList
        • pad: (data: CryptoJs.lib.WordArray) => void
            • (data: CryptoJs.lib.WordArray): void
            • Parameters

              • data: CryptoJs.lib.WordArray

              Returns void

        • unpad: (data: CryptoJs.lib.WordArray) => void
            • (data: CryptoJs.lib.WordArray): void
            • Parameters

              • data: CryptoJs.lib.WordArray

              Returns void

    Returns string

    decrypted string

encrypt

  • encrypt(data: string, options?: { encoding: { decode: (str: string | IterableObject) => CryptoJs.lib.WordArray; encode: (wordArray: CryptoJs.lib.WordArray) => string | Uint8Array; name: string }; padding: { name: string; op: PaddingList; pad: (data: CryptoJs.lib.WordArray) => void; unpad: (data: CryptoJs.lib.WordArray) => void } }): string
  • Encrypt string

    Parameters

    • data: string
    • Optional options: { encoding: { decode: (str: string | IterableObject) => CryptoJs.lib.WordArray; encode: (wordArray: CryptoJs.lib.WordArray) => string | Uint8Array; name: string }; padding: { name: string; op: PaddingList; pad: (data: CryptoJs.lib.WordArray) => void; unpad: (data: CryptoJs.lib.WordArray) => void } }
      • encoding: { decode: (str: string | IterableObject) => CryptoJs.lib.WordArray; encode: (wordArray: CryptoJs.lib.WordArray) => string | Uint8Array; name: string }
        • decode: (str: string | IterableObject) => CryptoJs.lib.WordArray
        • encode: (wordArray: CryptoJs.lib.WordArray) => string | Uint8Array
            • (wordArray: CryptoJs.lib.WordArray): string | Uint8Array
            • Parameters

              • wordArray: CryptoJs.lib.WordArray

              Returns string | Uint8Array

        • name: string
      • padding: { name: string; op: PaddingList; pad: (data: CryptoJs.lib.WordArray) => void; unpad: (data: CryptoJs.lib.WordArray) => void }
        • name: string
        • op: PaddingList
        • pad: (data: CryptoJs.lib.WordArray) => void
            • (data: CryptoJs.lib.WordArray): void
            • Parameters

              • data: CryptoJs.lib.WordArray

              Returns void

        • unpad: (data: CryptoJs.lib.WordArray) => void
            • (data: CryptoJs.lib.WordArray): void
            • Parameters

              • data: CryptoJs.lib.WordArray

              Returns void

    Returns string

    encrypted string

Generated using TypeDoc