Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
assetmanager_base64
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
arun.uday
assetmanager_base64
Commits
912de7e9
Commit
912de7e9
authored
Mar 27, 2023
by
arun.uday
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
d85754b3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
.idea/sonarlint/issuestore/index.pb
.idea/sonarlint/issuestore/index.pb
+5
-1
main.py
main.py
+2
-2
No files found.
.idea/sonarlint/issuestore/index.pb
View file @
912de7e9
b
2venv/Lib/site-packages/Cryptodome/Util/_raw_api.py,d\9\d91cf4b578ffc44db2bf053a64f5a6c85e0ff4ad
\ No newline at end of file
2venv/Lib/site-packages/Cryptodome/Util/_raw_api.py,d\9\d91cf4b578ffc44db2bf053a64f5a6c85e0ff4ad
^
..idea/inspectionProfiles/profiles_settings.xml,1\e\1e9075f5bf079c01ef2c910709e91a497d262080
\
,.idea/inspectionProfiles/Project_Default.xml,4\9\496a238a6afa168dbaf6efd37bb459331589579c
\ No newline at end of file
main.py
View file @
912de7e9
...
...
@@ -16,7 +16,7 @@ def encrypt(key, message):
return
base64
.
b64encode
(
encrypted_message
)
.
decode
(
'utf-8'
)
print
(
encrypt
(
"kliLensKLiLensKL"
,
"ajil.k@123"
))
print
(
encrypt
(
"kliLensKLiLensKL"
,
'"lokesh@123"'
))
def
_unpad
(
s
):
...
...
@@ -40,7 +40,7 @@ def decrypt(key, enc):
return
data
.
decode
(
'utf-8'
)
print
(
decrypt
(
"
iojfhuHurjdiojpu"
,
encrypt
(
"iojfhuHurjdiojpu"
,
"lokesh@123"
)
))
print
(
decrypt
(
"
kliLensKLiLensKL"
,
"pDQ9c41NO2rCLIUwF7hWYhu9c7+uFvCasws+GPB/I8k="
))
# import base64
# from Cryptodome.Cipher import AES
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment