Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
Smash_pass
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Smashpass
Smash_pass
Commits
ad9e425c
Commit
ad9e425c
authored
Dec 23, 2024
by
Benjamin REED
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reimplemented removing
parent
de997383
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
main.py
main.py
+8
-2
No files found.
main.py
View file @
ad9e425c
...
...
@@ -261,11 +261,17 @@ class State:
for
l
,
p
in
self
.
passwords
.
items
():
if
p
.
mode
==
"csr"
:
content
+=
f
"mode:csr:{p.key}
\n
"
if
l
in
self
.
to_remove
:
content
+=
f
"rm({l}),{p.encrypt()}
\n
"
else
:
content
+=
f
"{l},{p.encrypt()}
\n
"
if
self
.
rsa_key
is
not
None
:
content
+=
f
"mode:rsa:_
\n
"
for
l
,
p
in
self
.
passwords
.
items
():
if
p
.
mode
==
"rsa"
:
if
l
in
self
.
to_remove
:
content
+=
f
"rm({l}),{p.encrypt()}
\n
"
else
:
content
+=
f
"{l},{p.encrypt()}
\n
"
file
=
open
(
self
.
filepath
,
'w'
)
file
.
write
(
content
)
...
...
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