Skip to content

Commit

Permalink
Cryptography
Browse files Browse the repository at this point in the history
  • Loading branch information
Yaqoob committed Sep 14, 2022
1 parent 80414a8 commit 87e3c92
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ class SonicCryptography {
val encrypted: ByteArray = cipher.doFinal(message.toByteArray())
Base64.encodeToString(encrypted, Base64.DEFAULT)
} catch (ex: Exception) {
Log.e(TAG, "${ex.message}")
ex.message.toString()
Log.e(TAG, "Error: ${ex.message}")
"Error: ${ex.message}"
}
return encryptedMessage
}
Expand All @@ -36,8 +36,8 @@ class SonicCryptography {
val original: ByteArray = cipher.doFinal(Base64.decode(message, Base64.DEFAULT))
String(original)
} catch (ex: Exception) {
Log.e(TAG, "${ex.message}")
ex.message.toString()
Log.e(TAG, "Error: ${ex.message}")
"Error: ${ex.message}"
}
return decryptedMessage
}
Expand Down

0 comments on commit 87e3c92

Please sign in to comment.