mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-12 21:39:18 +00:00
fix: 修复密码后空格的问题
This commit is contained in:
@@ -82,7 +82,8 @@ class PiicoSM4EcbCrypto(BaseCrypto):
|
||||
return self.cipher.encrypt(self.to_16(data))
|
||||
|
||||
def _decrypt(self, data: bytes) -> bytes:
|
||||
return self.cipher.decrypt(data)
|
||||
bs = self.cipher.decrypt(data)
|
||||
return bs[:bs.index(0)]
|
||||
|
||||
|
||||
class AESCrypto:
|
||||
|
Reference in New Issue
Block a user