This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # The Following Program would work as Lexical Analyser | |
| # | |
| # Write a C/C++ program which reads a program written | |
| # in any programming language (say C/C++/Java) and then perform | |
| # lexical analysis. The output of program should contain the | |
| # tokens i.e. classification as identifier, special symbol, delimiter, | |
| # operator, keyword or string. It should also display the number of | |
| # identifiers, special symbol, delimiter, operator, keyword, strings | |
| # and statements |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Inspired from https://medium.com/@ismailakkila/black-hat-python-encrypt-and-decrypt-with-rsa-cryptography-bd6df84d65bc | |
| # Updated to use python3 bytes and pathlib | |
| import zlib | |
| import base64 | |
| from Crypto.PublicKey import RSA | |
| from Crypto.Cipher import PKCS1_OAEP | |
| from pathlib import Path | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .project | |
| .pydevproject | |
| data_ | |
| parameter_ | |
| *.pyc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # The Following Program would work as Lexical Analyser | |
| # | |
| # Write a C/C++ program which reads a program written | |
| # in any programming language (say C/C++/Java) and then perform | |
| # lexical analysis. The output of program should contain the | |
| # tokens i.e. classification as identifier, special symbol, delimiter, | |
| # operator, keyword or string. It should also display the number of | |
| # identifiers, special symbol, delimiter, operator, keyword, strings | |
| # and statements |