{"id":25185881,"url":"https://github.com/mazensayed91/encryption-decryption","last_synced_at":"2025-04-04T08:43:55.236Z","repository":{"id":111422001,"uuid":"311132018","full_name":"Mazensayed91/Encryption-Decryption","owner":"Mazensayed91","description":null,"archived":false,"fork":false,"pushed_at":"2020-11-08T18:57:41.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-09T19:43:15.432Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Mazensayed91.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-11-08T18:52:26.000Z","updated_at":"2020-11-08T18:58:44.000Z","dependencies_parsed_at":"2023-03-09T01:16:09.864Z","dependency_job_id":null,"html_url":"https://github.com/Mazensayed91/Encryption-Decryption","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mazensayed91%2FEncryption-Decryption","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mazensayed91%2FEncryption-Decryption/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mazensayed91%2FEncryption-Decryption/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mazensayed91%2FEncryption-Decryption/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mazensayed91","download_url":"https://codeload.github.com/Mazensayed91/Encryption-Decryption/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247149460,"owners_count":20891949,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-09T19:40:45.480Z","updated_at":"2025-04-04T08:43:55.223Z","avatar_url":"https://github.com/Mazensayed91.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Encryption-Decryption\n\nThis program can both encrypt and decrypt text and ciphertext using three methods: shift (Caesar cipher), unicode, and reverse (more methods to be added in the future).\n\nPrerequisites\n-------------\n\nThis program requires Java to run and compile.\n\nInstallation\n------------\n\n1. Download this repository and unzip the .zip file in your desired location.\n2. Using the command line, navigate to \\Encryption-Decryption-master\\src\\encryptdecrypt.\n3. Compile the program files using the command `javac *.java`.\n\nHow to use\n----------\n\nOnce the the compilation is finished, the program can be run from the command line by navigating to \\Encryption-Decryption-master\\src and using the command `java encryptdecrypt.Main` in combination with any desired arguments (The order of the arguments does not matter).\n\nSeveral arguments can be entered depending on the specific operation you want to perform: `-key`, `-alg`, `-mode`, `-data`, `-in`, and `-out`. As mentioned, the order of the arguments is of little importance; however, they should be followed by the appropriate value.\n\n`-key`:\n\nThe key is an integer value which represents the number of traversing moves that need to be applied on each character of the given text in order to complete the encryption/decryption process. If no `-key` argument is given, the key value defaults to zero and the text will not be changed (unless the chosen algorithm is `reverse`; which does not require a key to encrypt/decrypt).\n\n`-alg`:\n\nThe algorithm used to encrypt/decrypt the text. The available algorithms currently are `shift`, `reverse`, and `unicode`. Only one algorithm can be entered as a value to the `alg` argument at once. If the `-alg` argument is not used, the program will default to the shift algorithmn.\n\n_Shift:_ Only alphabet characters will be shifted, retaining case (A-Z and a-z).\n\n_Reverse:_ Every alphabet character will be switched with its alphabet character peer from the opposite direction of the alphabet (A -\u003e Z, B -\u003e Y,..), retaining case (A-Z and a-z). Non-alphabet charaters will remain unaffected.\n\n_Unicode:_ All characters are shifted and may become any unicode character.\n\n\n`-mode`:\n\nThe mode can be set to either `enc` for encryption or `dec` for decryption. The program defaults to `enc` if the `-mode` argument is not used.\n\n`-data`:\n\nThe `-data` argument should be followed by a string of the text to be encrypted/decrypted in quotation marks. The program will encrypt/decrypt this text prioritizing it over any text entered using the `-in` argument.\n\n`-in`:\n\nThe `-in` argument should be followed by a file path and name. This should be a .txt file containing the text to be encrypted/decrypted.\n\n`-out`:\n\nThe `-out` argument should be followed by a file path and name with a .txt extension. This is the file the resulting text will be written to after encryption/decryption. If the specified file does not already exist, it will be created; otherwise, the existing file will be overwritten.\n\nNotes:\n------\n1 - More algorithms to Encrypt/Decrypt will be added in the future.\n\n\n2 - The code was refactored to abide to the strategy pattern.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmazensayed91%2Fencryption-decryption","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmazensayed91%2Fencryption-decryption","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmazensayed91%2Fencryption-decryption/lists"}