Xwite %!s(int64=3) %!d(string=hai) anos
pai
achega
acef5d2f71

+ 1 - 1
app/src/main/java/io/legado/app/help/crypto/AsymmetricCrypto.kt

@@ -39,7 +39,7 @@ class AsymmetricCrypto(algorithm: String) : HutoolAsymmetricCrypto(algorithm) {
             data is ByteArray -> func.invoke(data as ByteArray)
             data is String -> func.invoke(data as String)
             data is InputStream -> func.invoke(data as InputStream)
-            else -> null
+            else -> throw IllegalArgumentException("Unexpected data input")
         }
     }