복원화
-
AES(암호화, 복원화)Etc 2022. 10. 24. 14:45
//key값의 길이에 따라 AES128, AES192, AES256 으로 구분 //AES128 : 키값 16bytes, AES192 : 키값 24bytes, AES256 : 키값 32bytes object AESUtil { private const val secretKey = "your_secretKey" private const val ecbTransformation = "AES/ECB/PKCS5Padding" private const val cbcTransformation = "AES/CBC/PKCS5Padding" private val ivBytes = secretKey.toByteArray() //AES 암호화(ECB) fun aesEncodeECB(str: String): String { try..