Skip to content

Commit

Permalink
Lab-4 added
Browse files Browse the repository at this point in the history
  • Loading branch information
Sakib62 committed Oct 30, 2024
1 parent 249d96e commit 3c8297b
Show file tree
Hide file tree
Showing 9 changed files with 632 additions and 0 deletions.
Binary file added Lab-4/Lab Manual - 4.pdf
Binary file not shown.
574 changes: 574 additions & 0 deletions Lab-4/Lab_4.ipynb

Large diffs are not rendered by default.

18 changes: 18 additions & 0 deletions Lab-4/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Lab - 4 : Programming Symmetric & Asymmetric Crypto

[**Lab Report**](Lab_4.ipynb)

- AES Key Generation
- AES Encryption
- AES Decryption
- RSA Key Generation
- RSA Encryption
- RSA Decryption
- RSA Signing
- RSA Verification
- SHA256 Hashing

## Resources

- [Cryptography.io](https://cryptography.io/en/latest/)
- [Laurent Luce's Blog](https://www.laurentluce.com/posts/python-and-cryptography-with-pycrypto/)
1 change: 1 addition & 0 deletions Lab-4/aes_encrypted.bin
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
d��\b� <GV�<|ܗ�L�?���N�sg3ݖ��˴3��Pt�Wv�
Expand Down
1 change: 1 addition & 0 deletions Lab-4/aes_key_128.key
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
�(���u� ��\���e
Binary file added Lab-4/rsa_encrypted.bin
Binary file not shown.
27 changes: 27 additions & 0 deletions Lab-4/rsa_private_key.pem
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
-----BEGIN RSA PRIVATE KEY-----
MIIEpAIBAAKCAQEAuSayF2qUkqeDpf95yl8zRfWSyYpXEPX6iEx70XPbdUf5sChN
3dunEO6cSASFmO5BRA6giSIWbkYf9gE6T7kv2i+4Pcp44h9LD6Iir2dfbo2u3HNU
N20aWgNXoAltEf4PEWcMZCcC/62udKiL7+qGvnhItMl+IT4oyzRv6eYMZE+l/r6d
Ndb2neRKYzwEbn9FXH34SxsHv5pipxLkWK7IaUh+DL+LIttFFSiBCPxquz4J+Yt0
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2EejrBAQ4qXY0osq5J1rvN
VIMNlX0t3npdjYjItde1R85fTUmw0ZhBVGPINvzGFcUG36QzYR1PamIulLWW0KTb
tQegOQKBgQDRBjnZ+3KUFdQkUmaX55gArOpSVmxeZRU5uFtCcl8BJFMVlFU4BVNa
asqCmL3SKhXw0ui1VwRzemyj6irSxHUqVT8TS2K2TKiSbCzbrQrmZFcieMKgc+Kw
xtylkSxhWKbJ7kIknZK331rvAdoSsYk9waTNxEvvpL4IzxSiqgubIQ==
-----END RSA PRIVATE KEY-----
9 changes: 9 additions & 0 deletions Lab-4/rsa_public_key.pem
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAuSayF2qUkqeDpf95yl8z
RfWSyYpXEPX6iEx70XPbdUf5sChN3dunEO6cSASFmO5BRA6giSIWbkYf9gE6T7kv
2i+4Pcp44h9LD6Iir2dfbo2u3HNUN20aWgNXoAltEf4PEWcMZCcC/62udKiL7+qG
vnhItMl+IT4oyzRv6eYMZE+l/r6dNdb2neRKYzwEbn9FXH34SxsHv5pipxLkWK7I
aUh+DL+LIttFFSiBCPxquz4J+Yt0Qie8W9F+9kfIwNh3e2+mfTd7M4oo+K7gfGv1
SbPGrasxXSrDTTc23xnb5iMrFs7TUowrnHt9pA+nHwp4xNy7U1Gx1s9tMfuqAha9
pwIDAQAB
-----END PUBLIC KEY-----
2 changes: 2 additions & 0 deletions Lab-4/rsa_signature.sig
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ʴ ى�B�?9�R&F�ljZ�3}}_S��S��.�=�dJBn�-��1L�'��m�5H����UhWPW<���M<��U�?�H̚:�(� �Fӎa�0޸�E+lC�PN!�������k��r�A s�`n�kT���?��P�)��9p�TK`]t��Ml�=ZR/�m�M�H�%���M���
?*�5 ɾ��S�:�j�8IB��($���G`��Z�"/��T�� 3���"=�J�1�>�+�@�8

0 comments on commit 3c8297b

Please sign in to comment.