Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
周伟奇
/
bmw-ocr
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
884b4a9d
authored
2025-04-21 15:30:11 +0800
by
冯轩
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
u0007
1 parent
52864fbd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
src/common/tools/aes_util.py
src/common/tools/aes_util.py
View file @
884b4a9
...
...
@@ -10,7 +10,7 @@ def aes_decrypt_cbc(data, key, iv):
try
:
cipher
=
AES
.
new
(
key
.
encode
(),
AES
.
MODE_CBC
,
iv
.
encode
())
res
=
cipher
.
decrypt
(
b64decode
(
data
))
res
=
res
.
decode
(
'utf-8'
)
.
replace
(
r'\x0e'
,
''
)
.
replace
(
r'\u
007'
,
''
)
res
=
res
.
decode
(
'utf-8'
)
.
replace
(
'
\x0e
'
,
''
)
.
replace
(
'
\u0
007
'
,
''
)
except
Exception
as
e
:
res
=
''
return
res
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment