Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tp_rsa_python
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
flavio.morrone
tp_rsa_python
Commits
1d98277e
Commit
1d98277e
authored
2 years ago
by
flavio.morrone
Browse files
Options
Downloads
Patches
Plain Diff
merging
parent
4c33055c
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
__pycache__/algo.cpython-38.pyc
+0
-0
0 additions, 0 deletions
__pycache__/algo.cpython-38.pyc
main.py
+3
-2
3 additions, 2 deletions
main.py
with
3 additions
and
2 deletions
__pycache__/algo.cpython-38.pyc
0 → 100644
+
0
−
0
View file @
1d98277e
File added
This diff is collapsed.
Click to expand it.
main.py
+
3
−
2
View file @
1d98277e
...
@@ -29,12 +29,13 @@ def main():
...
@@ -29,12 +29,13 @@ def main():
n
=
1989929159
#first element public key
n
=
1989929159
#first element public key
e
=
2203
#second element public key
e
=
2203
#second element public key
length
=
len
gth
(
mu
)
length
=
len
(
mu
)
# --- private element ---
# --- private element ---
M
=
[]
#decriypted message
M
=
[]
#decriypted message
msg
=
""
#message (string)
msg
=
""
#message (string)
p
,
q
=
0
#primes numbers
p
=
0
#primes numbers
q
=
0
d
=
0
#private key
d
=
0
#private key
#--- crack RSA ---
#--- crack RSA ---
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment