Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fun decrypt(cipherAlgorithm: String, cipherText: ByteArray, key: Key): ByteArray? {
- val cipher = Cipher.getInstance(cipherAlgorithm)
- cipher.init(Cipher.DECRYPT_MODE, key)
- val plainText = cipher.doFinal(cipherText)
- return plainText
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement