diff --git a/app/src/main/java/com/idormy/sms/forwarder/server/component/AppMessageConverter.kt b/app/src/main/java/com/idormy/sms/forwarder/server/component/AppMessageConverter.kt index 36c222c4..d6b2e555 100644 --- a/app/src/main/java/com/idormy/sms/forwarder/server/component/AppMessageConverter.kt +++ b/app/src/main/java/com/idormy/sms/forwarder/server/component/AppMessageConverter.kt @@ -75,7 +75,7 @@ class AppMessageConverter : MessageConverter { throw HttpException(500, "服务端未配置SM4密钥") } - val sm4Key = ConvertTools.hexStringToByteArray(HttpServerUtils.clientSignKey.toString()) + val sm4Key = ConvertTools.hexStringToByteArray(HttpServerUtils.serverSm4Key.toString()) val encryptCBC = ConvertTools.hexStringToByteArray(json) val decryptCBC = SM4Crypt.decrypt(encryptCBC, sm4Key) //json = String(Base64.decode(decryptCBC.toString()))