a guest Jul 21st, 2019 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand