This website requires JavaScript.
2ae7d09c25
rsa: print help if not args given
master
HeshamTB
2024-01-19 16:15:18 +0300
a58f9b9337
rsa: black formatting, ignore idea files
EE494-extenstions
HeshamTB
2024-01-19 15:58:15 +0300
8c7bc52d9a
Fix error in prime_factors:
HeshamTB
2022-10-19 19:56:57 +0300
8f00e6a45a
Added prime_factors command
HeshamTB
2022-10-19 19:48:34 +0300
b034158d2f
Added commands: genrand, genprime
HeshamTB
2022-10-19 18:23:01 +0300
ec2bbf116b
Improved output:
HeshamTB
2022-10-19 18:08:35 +0300
6d9e071aa4
Added is_prime command
HeshamTB
2022-10-19 18:04:44 +0300
522e9f3453
Update cp right to 2021
HeshamTB
2021-01-30 13:03:57 +0300
5277984fdb
Ignore venv dir
HeshamTB
2021-01-30 13:00:48 +0300
781cde431d
Copy right headers
HeshamTB
2020-12-12 02:26:02 +0300
75547aca2b
Merge branch 'master' of https://github.com/HeshamTB/hesham-rsa
HeshamTB
2020-12-12 02:16:21 +0300
701ce1609d
Merge pull request #1 from HeshamTB/add-license-1
HeshamTB
2020-12-12 02:17:29 +0300
68d613e4b5
Create LICENSE
HeshamTB
2020-12-12 02:13:06 +0300
9372246034
Update 'README.md'
Hesham
2020-10-17 11:03:39 +0300
4e41eb87f1
README typo
HeshamTB
2020-09-10 09:54:53 +0300
4d1d683d26
Update 'README.md'
Hesham
2020-09-06 11:32:58 +0300
b97b6b14f4
Merge pull request 'Block overwrite' (#6 ) from key-overwrite into master
Hesham
2020-09-06 09:06:28 +0300
a864749812
key-overwrite: prompt overwrite choice.
key-overwrite
HeshamTB
2020-09-06 08:51:54 +0300
825d8eb647
Block overwrite
HeshamTB
2020-09-06 08:07:15 +0300
f5eef6a226
Merge pull request 'term-output' (#4 ) from term-output into master
Hesham
2020-09-06 07:50:24 +0300
66560b5f26
Merge branch 'master' into term-output
term-output
HeshamTB
2020-09-06 07:42:01 +0300
261ce0fdb4
version 1.2.2
1.2.2
V1.2.2
HeshamTB
2020-09-06 07:27:47 +0300
b4e61d0a77
Updated interface
HeshamTB
2020-09-06 07:26:49 +0300
735b3bd71b
+x file mode
HeshamTB
2020-09-06 06:17:52 +0300
a36de9cf67
Better output while finding primes: use \b instead of \r with the count of digits of tested number. still outputs a mess at start due to multithreads output at same time, however, stable after first itiration.
HeshamTB
2020-09-06 06:13:19 +0300
ea5a9195be
Check number of args in 'gen' command interface
HeshamTB
2020-09-06 06:09:12 +0300
0cbbc77976
Merge branch 'master' into file-sys
file-sys
HeshamTB
2020-08-28 19:28:25 +0300
96e8f753ff
prepare merge
HeshamTB
2020-08-28 19:26:06 +0300
d51a42589c
Use sys.exit() instead of exit():
HeshamTB
2020-08-28 18:53:55 +0300
b7597320fd
Ignore pyinstaller files
HeshamTB
2020-08-28 18:53:22 +0300
c059a7dccd
version 1.2.1
1.2.1
V1.2.1
HeshamTB
2020-08-28 17:52:18 +0300
7ae3e4dc04
Improved and accurate signature output
HeshamTB
2020-08-28 17:22:35 +0300
c121314eb9
Update 'README.md'
Hesham
2020-08-28 02:47:01 +0300
7bfe4c3c89
Ignore new ecnrypted msg files.
HeshamTB
2020-07-24 10:49:45 +0300
45584d378e
Update 'README.md'
Hesham
2020-07-10 07:27:37 +0300
18cf5b3059
Add 'README.md'
Hesham
2020-07-10 07:25:20 +0300
d7a8ec02ea
Rename rsa.py to hrsa: hashbang in hrsa file will invoke python3 on linux
HeshamTB
2020-07-06 02:16:10 +0300
960468ad21
Output header/footer
HeshamTB
2020-07-06 00:29:30 +0300
51d9571a37
Save message to file
HeshamTB
2020-07-05 10:08:51 +0300
d8ab2bbca5
octet encode decode in encodetest file.
octer-strings
HeshamTB
2020-04-21 23:55:06 +0300
30069c3d2b
Print message for unknown sig.
HeshamTB
2020-04-21 23:53:04 +0300
9738da7dca
Merge branch 'master' of https://apollo-server.ddns.net/gitea/Hesham/hesham-rsa
HeshamTB
2020-04-21 07:41:53 +0300
bdb2fa7780
base-16 representation for all.
HeshamTB
2020-04-21 07:37:50 +0300
c351efa716
Print out n, e, d after key gen.
HeshamTB
2020-04-20 21:20:34 +0300
a474683f5e
Octet String to integer and integer to octet string.
HeshamTB
2020-04-20 20:16:49 +0300
f854c46dd2
update TODO
HeshamTB
2020-04-20 02:49:48 +0300
321fb3ec01
Added help command
HeshamTB
2020-04-20 00:19:09 +0300
23b421ee1f
print key command.
1.2
V1.2
HeshamTB
2020-04-19 20:26:05 +0300
e086a2cdcc
Cracking keys function: - Given n and e, try factoring n and generate d if p or q is found. works well with 16-bit to 64-bit keys. larger keys take vary long which is good.
HeshamTB
2020-04-19 20:24:57 +0300
bfdbca50e7
Simple Cracking. Vary inefficient.
HeshamTB
2020-04-19 16:25:45 +0300
e5a66e4d29
Cleanup: - Interface exit codes - Clean up
HeshamTB
2020-04-19 15:45:51 +0300
611a6c45ea
Added Miller Rabin's algorithm: - Now can generate a 4096-bit key in seconds. However, a longer key makes the cipher way too long. Should make a padding or an encoding to reduce the cipher size with big keys.
HeshamTB
2020-04-18 18:34:36 +0300
06793f5fb7
Updated list command output.
HeshamTB
2020-04-18 17:53:12 +0300
0d6bf9228d
Update TODO
HeshamTB
2020-04-18 17:28:55 +0300
8d2b822999
Fixed list output.
HeshamTB
2020-04-18 17:18:58 +0300
0cb6d56236
Added export key.
1.1
V1.1
HeshamTB
2020-04-18 15:23:06 +0300
45c1abd0fa
Fixed output of listKeys().
HeshamTB
2020-04-18 14:12:46 +0300
bfc572386e
Improved interface: - Catch wrong number of args. - Logic was not correct. - Print command template.
HeshamTB
2020-04-18 14:12:01 +0300
998089f94c
Added list keys command.
1.0
V1.0
HeshamTB
2020-04-18 03:27:08 +0300
d1257320a8
Added 4th argument to sign with a given key other than the one for encryption
HeshamTB
2020-04-18 03:16:35 +0300
1924c14df0
Fixed bugs: - Key save did not save all values. - Index out of range of tempKey when only it is only public part.
HeshamTB
2020-04-18 03:15:08 +0300
ff3df34597
Full signing and verification system.
HeshamTB
2020-04-18 02:27:16 +0300
99e2ac0655
updated test file
HeshamTB
2020-04-18 02:21:53 +0300
486e40c7f5
Add signiture in last word. Redid key save file to inclue id.
HeshamTB
2020-04-17 23:53:07 +0300
ad95ca82da
Added key gen and encryption with d in test program.
HeshamTB
2020-04-17 21:38:50 +0300
d4fecb787c
todo list
HeshamTB
2020-04-17 20:40:35 +0300
719d54aaa1
New key save format: - Save p, q, phi also - Added index constants for readability
HeshamTB
2020-04-17 20:35:20 +0300
7facaf1207
Split words in message into a list of strings and encrypt each. This should allow unlimited length of any message.
HeshamTB
2020-04-17 17:31:34 +0300
01e3f69c94
Merge branch 'master' of https://apollo-server.ddns.net/gitea/Hesham/hesham-rsa
HeshamTB
2020-04-17 16:37:10 +0300
654cb52ca4
Check if keys dir exists. if not make it before saving to prevent exception.
HeshamTB
2020-04-17 16:34:03 +0300
4c16bbc282
Improved key print
HeshamTB
2020-04-17 16:32:10 +0300
18df4d2b07
Added a second thread. Should be faster. up to 140 bits
HeshamTB
2020-04-17 12:23:08 +0300
936a6eebb6
New keys folder and global variables.
HeshamTB
2020-04-17 05:21:58 +0300
d23b2d4ae0
test file. Consider writing 'words' to file instead of saving a list in memory.
HeshamTB
2020-04-17 04:43:03 +0300
f9ff56651d
rsa gen: cleaner stdout with carriage return. (printing to the same line)
HeshamTB
2020-04-17 04:40:31 +0300
b2dc176d40
Changed key representation to hex r-16.
HeshamTB
2020-04-17 04:38:09 +0300
168f8a2b66
gitignore file
HeshamTB
2020-04-17 04:34:41 +0300
db2a852cf3
isPrime() function/algo optimization: insted of taking all integers from 2 to K, take only odds since we know that the even prime is 2. This should in theory reduce the time to check primilaty to half.
HeshamTB
2020-04-16 21:51:36 +0300
1954308cb4
improved interface - Accept key generation size. (not practical above 64-bit) - Decrypt from command args only for now - Catch Unicode Decode Error cuased by wong key or size.
HeshamTB
2020-04-16 18:56:04 +0300
feeea933c3
Working interface. - Encrypt a signle word message. for now - Decrypt only with target private key - Runtime errors when using wrong key to decrypt or message too long.
HeshamTB
2020-04-16 14:33:24 +0300
a1e05a572a
Interfacing changes: - Split into methods. - Added a cli interface with commands 'gen <filename>' to generate keys and 'encrypt <message> <publicKey>' to encrypt a message to the passed key. - Read and save keys.
HeshamTB
2020-04-16 12:35:42 +0300
4bd8fcf1dd
A 128-bit key pair saved. Took 15 minutes to generate on (Intel i7-4710MQ (8) @ 3.500GHz) single thread.
0.1
V0.1
HeshamTB
2020-04-16 09:51:08 +0300
1993551a59
Working key pair generation, encryption and decryption TODO: - Clean up - Split into methods - Save a key pair in a file (interactivly)?
HeshamTB
2020-04-16 09:48:31 +0300
1a591cc75e
getPrime() method working. gets random prime based on bit size.
HeshamTB
2020-04-16 05:54:36 +0300
7fe7065700
isPrime() method working with good accuracy. needs more testing.
HeshamTB
2020-04-16 05:07:52 +0300
9f5d9fe5a5
init commit
HeshamTB
2020-04-16 00:05:03 +0300