io.sureshg.extn / kotlin.String / aes128Encrypt

aes128Encrypt

fun String.aes128Encrypt(key: String): ByteArray

Encrypt this string with AES-128 using the specified key. Ported from - https://goo.gl/J1H3e5

Parameters

key - Encryption key.

Return
Encrypted output.