{"id":19484180,"url":"https://github.com/karusb/bazcryptlib","last_synced_at":"2025-02-25T17:48:13.379Z","repository":{"id":129859203,"uuid":"109854894","full_name":"karusb/BazCryptLIB","owner":"karusb","description":"BazCrypt 4 Neighborhood Cellular Automata Encryption Algorithm C++ Library","archived":false,"fork":false,"pushed_at":"2022-05-29T21:41:11.000Z","size":664,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-08T07:42:23.772Z","etag":null,"topics":["algorithm","bazcrypt","bazcrypt-encryption","c-plus-plus","cellular-automata","cpp","cross-platform","cryptography","encryption","library","linux","windows"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/karusb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2017-11-07T15:35:29.000Z","updated_at":"2022-02-27T21:42:43.000Z","dependencies_parsed_at":"2023-03-13T11:19:14.321Z","dependency_job_id":null,"html_url":"https://github.com/karusb/BazCryptLIB","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karusb%2FBazCryptLIB","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karusb%2FBazCryptLIB/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karusb%2FBazCryptLIB/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karusb%2FBazCryptLIB/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/karusb","download_url":"https://codeload.github.com/karusb/BazCryptLIB/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240718957,"owners_count":19846483,"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":["algorithm","bazcrypt","bazcrypt-encryption","c-plus-plus","cellular-automata","cpp","cross-platform","cryptography","encryption","library","linux","windows"],"created_at":"2024-11-10T20:19:40.024Z","updated_at":"2025-02-25T17:48:13.373Z","avatar_url":"https://github.com/karusb.png","language":"C++","readme":"# BazCryptLIB\n\nBazCrypt Encryption C++ Library\n\nAllows you to perform BazCrypt Encryption/Decryption with a simple function call.\n\nBazCrypt is a symmetric XOR encryption algorithm that uses Cellular Automata to randomise the key that was initially provided as a password and provides extra security with generation number.\n\n## Use Cases\n\n- Text Encryption\n- Data Encryption\n- Communications Encryption (Only valid if password changes for each message)\n\n## Pre-Compiled Binaries\n\n### Command Line Interface and Library\n\n- [[Linux] Download](https://github.com/karusb/BazCryptLIB/releases/download/1.2.0/BazCryptCLI-v1.2-Linux64.zip)\n- [[Windows] Download](https://github.com/karusb/BazCryptLIB/releases/download/1.2.0/BazCryptCLI-v1.2-Windows64.zip)\n\n#### Program Options\n\n```sh\n    -f  --file            Path to file to encrypt/decrypt\n    -m  --message         Text data to encrypt\n    -p  --password        Password\n    -g  --generations     Generation number, or known as pincode, use 4 digits atleast\n    -o  --output          Path to output file, when specified input wont be overwritten\n    -a  --algorithm       Optional algorithm selection, use 0 or 1 or 2, default is 0\n    -L  --license         Prints software licence.\n    -h  --help            Prints this text.\n\n    File encryption/decryption example:\n    bazcrypt -f \\\\path\\\\to\\\\file.txt -p strongpassword -g 1324\n\n    Text encryption/decryption example:\n    bazcrypt -m \\\"Plain Text\\\" -p strongpassword -g 1324 -o plain.txt\n    bazcrypt -f plain.txt -p strongpassword -g 1324 -o plain.txt\n\n```\n\n## Convention\n\n```c++\nint BazCrypt(const char* MESSAGE, const char* password, char* output, unsigned long messageLength, unsigned long passwordLength, int generations, int algorithm);\n```\n\n Message = char(8bit) array data that is to be encrypted/decrypted.\\\n password = char(8bit) array password that is to generate the IV for the encryption.\\\n output = pre allocated char(8bit) array which has the same size as the message\\\n messageLength  = length of the Message array\\\n passwordLength = length of the password array\\\n generations = Non 0 integer number that determines the cycles of the algorithm. Also referred as PIN number.\\\n algorithm = Preferred algorithm of choice. Default is 0.\n\n- 0 = 57630b\n- 1 = 57630z\n- 2 = 39318\n\nreturns = Status after execution\n\n- 0 OK        = Finished succesfully.\n- 1 NULLPARAM = One or more input arrays are nullptrs.\n- 2 NULLSIZE  = One or more Length parameters are zero.\n\n## Build\n\n### Linux\n\n- Required build-essentials, cmake\n- Run these in terminal within the source directory:\n\n```bash\n   cmake .\n   make install\n```\n\n- Libraries are automatically installed i.e \u003cBazCryptLIB.h\u003e\n- CLI(CommandLineInterface) is automatically installed as \"bazcrypt\"\n\n### Windows\n\n- Required Visual Studio and CMake\n- Run BazCryptLIB.sln and choose Release or DLL configuration, right click solution and click build.\n- Library will be located under x64/Release or x64/DLL depending on your preference\n- CLI(CommandLineInterface) is automatically built as \"bazcrypt.exe\"\n\n## Example BazCrypt Call\n\n ```c++\n #include \"BazCryptLIB.h\"\nusing namespace BazCryptLIB;\nint main()\n{\n    const char* message = \"This is a test plain text. This is also very important to hide!\";\n    const char* key = \"asimplepasswordtouse\";\n    unsigned long keyLen = 21;\n    unsigned long msgLen = 64;\n    int generations = 1500;\n\n    // ENCRYPTION\n    char* encryptedMessage = new char[(int)msgLen];\n    BazCrypt(message, key, encryptedMessage, msgLen, keyLen, generations, 2);\n\n    // DECRYPTION\n    char* decryptedMessage = new char[(int)msgLen];\n    BazCrypt(encryptedMessage, key, decryptedMessage, msgLen, keyLen, generations, 2);\n\n    return 0;\n}\n```\n\n![ProgramOutput](https://github.com/karusb/BazCryptLIB/raw/master/bazlib.jpg)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarusb%2Fbazcryptlib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkarusb%2Fbazcryptlib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarusb%2Fbazcryptlib/lists"}