mona-dish
    Preparing search index...

    Interface Crypto

    generic crypto interface to encrypt messages before they are sent to the message bus oder the underlying bus system

    The idea is to make it as easy as possible, you can use for instance crypto js to handle everything

    interface Crypto {
        decode(data: any): any;
        encode(data: any): any;
    }

    Implemented by

    Index

    Methods

    Methods

    • Parameters

      • data: any

        the encrypted data in the format you expect it to be

      Returns any

      the unencrypted data

    • note anything can be passed

      Parameters

      • data: any

        the data to be encrypted

      Returns any

      the encrypted data in any format, important is decode must be able to handle it