A Kotlin project that encrypts and decrypts UUIDs using AES encryption with Base64 encoding.
- AES Encryption: Uses the AES algorithm with CBC mode for secure encryption.
- UUID Conversion: Converts encrypted data back to its original UUID format.
- Generate an AES key and encrypt a UUID:
val aesKey = generateAESKey()
val originalUuid = UUID.randomUUID()
val encryptedUuidBase64 = encryptUuidToBase64(originalUuid, aesKey)
- Decrypt an encrypted UUID:
val decryptedUuid = decryptBase64ToUuid(encryptedUuidBase64, aesKey).let { UUID.fromString(it) }
This project is licensed under the MIT License.