Class ExpiringCrypto

a class with timeout functionality which blocks decodes after a certain period of time if the message is not decoded by then We use hash as identifier generation after encryption to make sure a trace was possible

The idea behind this is to have a generic wrapper which allows messages with dynamic encryption where keys/salts only exist for a certain period of time before expiring! That way someone who implements such a scheme does not have to take care about the bookeeping mechanisms! Or you can use crypto mechanisms which do not have expiring keys and still expire them automatically

I will leave it up to the system integrator to provide a rotating crypto class, because this is highly implementation dependent. But it helps to have a wrapper!

Hierarchy

  • ExpiringCrypto

Implements

Constructors

Methods

Constructors

Methods

  • decode implementation with a timeout hook install

    Parameters

    • data: any

    Returns any

  • encode with a timeout hook installed calls the encode of the delegated object

    Parameters

    • data: any

    Returns any

Generated using TypeDoc