io.sureshg.extn / kotlin.CharArray / pbeCipher

pbeCipher

fun CharArray.pbeCipher(algo: String, params: AlgorithmParameters, mode: Int = Cipher.DECRYPT_MODE): Cipher

Returns Cipher instance for this char array password with password-based encryption (PBE).

Parameters

algo - cipher algorithm params - cipher AlgorithmParameters mode - cipher mode ENCRYPT, DECRYPT, WRAP etc.