CipherFactory

scodec.codecs.CipherFactory$
See theCipherFactory companion trait

Companion for CipherFactory.

Attributes

Companion:
trait
Source:
CipherCodec.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Value members

Concrete methods

def apply(transformation: String, initForEncryption: Cipher => Unit, initForDecryption: Cipher => Unit): CipherFactory

Creates a cipher factory for the specified transformation (via Cipher.getInstance(transformation)) and using the specified functions for initializing for encryption and decryption respectively.

Creates a cipher factory for the specified transformation (via Cipher.getInstance(transformation)) and using the specified functions for initializing for encryption and decryption respectively.

Attributes

Source:
CipherCodec.scala
def apply(transformation: String, key: Key): CipherFactory

Creates a cipher factory for the specified transformation (via Cipher.getInstance(transformation)).

Creates a cipher factory for the specified transformation (via Cipher.getInstance(transformation)).

Ciphers are initialized with the specified key only.

Attributes

Source:
CipherCodec.scala
def apply(transformation: String, key: Key, spec: AlgorithmParameterSpec): CipherFactory

Creates a cipher factory for the specified transformation (via Cipher.getInstance(transformation)).

Creates a cipher factory for the specified transformation (via Cipher.getInstance(transformation)).

Ciphers are initialized with the specified key and algorithm parameter specification.

Attributes

Source:
CipherCodec.scala