cipherSource

fun Source.cipherSource(cipher: Cipher): CipherSource

Returns a source that uses cipher to encrypt or decrypt this.

Throws

if cipher isn't a block cipher.