create

@NotNull
abstract fun create(@NotNull name: @NotNull String, data: Array<Byte>): @NotNull Encryption

Creates a new encryption instance using the specified encryption algorithm and provided key data.

Return

A new encryption instance.

Parameters

name

The name of the encryption algorithm.

data

The key data used for encryption.