Advertisement
Guest User

Untitled

a guest
Jul 21st, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. fun decrypt(cipherAlgorithm: String, cipherText: ByteArray, key: Key): ByteArray? {
  2. val cipher = Cipher.getInstance(cipherAlgorithm)
  3. cipher.init(Cipher.DECRYPT_MODE, key)
  4. val plainText = cipher.doFinal(cipherText)
  5. return plainText
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement