Options
All
  • Public
  • Public/Protected
  • All
Menu

  subscribe now with sterfive to access the online-user manual

Hierarchy

  • CryptoFactory

Index

Properties

asymmetricEncryptionAlgorithm

asymmetricEncryptionAlgorithm: string

for info only

asymmetricSignatureAlgorithm

asymmetricSignatureAlgorithm: string

for info only

blockPaddingSize

blockPaddingSize: number

derivedEncryptionKeyLength

derivedEncryptionKeyLength: number

derivedSignatureKeyLength

derivedSignatureKeyLength: number

encryptingBlockSize

encryptingBlockSize: number

maximumAsymmetricKeyLength

maximumAsymmetricKeyLength: number

for info only

minimumAsymmetricKeyLength

minimumAsymmetricKeyLength: number

for info only

securityPolicy

securityPolicy: SecurityPolicy

sha1or256

sha1or256: "SHA1" | "SHA256"

signatureLength

signatureLength: number

symmetricEncryptionAlgorithm

symmetricEncryptionAlgorithm: "aes-256-cbc" | "aes-128-cbc"

symmetricKeyLength

symmetricKeyLength: number

Methods

asymmetricDecrypt

  • asymmetricDecrypt(buffer: Buffer, privateKey: string): Buffer
  • Parameters

    • buffer: Buffer
    • privateKey: string

    Returns Buffer

asymmetricEncrypt

  • asymmetricEncrypt(buffer: Buffer, publicKey: string): Buffer
  • Parameters

    • buffer: Buffer
    • publicKey: string

    Returns Buffer

asymmetricSign

  • asymmetricSign(buffer: Buffer, publicKey: string): Buffer
  • Parameters

    • buffer: Buffer
    • publicKey: string

    Returns Buffer

asymmetricVerify

  • asymmetricVerify(buffer: Buffer, signature: Buffer, certificate: Buffer): boolean
  • Parameters

    • buffer: Buffer
    • signature: Buffer
    • certificate: Buffer

    Returns boolean

asymmetricVerifyChunk

  • asymmetricVerifyChunk(self: CryptoFactory, chunk: Buffer, certificate: Buffer): boolean
  • Parameters

    Returns boolean

Generated using TypeDoc