Ciphering

public protocol Ciphering

Provides an encryption / decryption API.

  • Encrypts the given data.

    Declaration

    Swift

    func encrypt(data: Data) throws -> Data

    Parameters

    data

    the data to be encrypted

    Return Value

    the encrypted data

  • Decrypts the given data.

    Declaration

    Swift

    func decrypt(data: Data) throws -> Data

    Parameters

    data

    the encrypted data

    Return Value

    the decrypted data