{"id":15723724,"url":"https://github.com/paolostivanin/gtkcrypto","last_synced_at":"2025-06-10T19:39:24.976Z","repository":{"id":6879300,"uuid":"8128517","full_name":"paolostivanin/GTKCrypto","owner":"paolostivanin","description":"GTKCrypto allows you to easily encrypt, sign and compute hash of your data.","archived":false,"fork":false,"pushed_at":"2022-07-13T15:23:53.000Z","size":904,"stargazers_count":9,"open_issues_count":1,"forks_count":2,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-20T23:32:37.151Z","etag":null,"topics":["aes-256","c","camellia","cbc-mode","ctr-mode","decrypt","decrypt-files","encrypt","gtk3","hash","hmac","md5","serpent","sha2","sha3","twofish"],"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/paolostivanin.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":"SECURITY.md","support":null}},"created_at":"2013-02-10T21:44:10.000Z","updated_at":"2024-01-14T10:31:31.000Z","dependencies_parsed_at":"2022-08-26T10:11:34.704Z","dependency_job_id":null,"html_url":"https://github.com/paolostivanin/GTKCrypto","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paolostivanin%2FGTKCrypto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paolostivanin%2FGTKCrypto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paolostivanin%2FGTKCrypto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paolostivanin%2FGTKCrypto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/paolostivanin","download_url":"https://codeload.github.com/paolostivanin/GTKCrypto/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253925445,"owners_count":21985317,"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":["aes-256","c","camellia","cbc-mode","ctr-mode","decrypt","decrypt-files","encrypt","gtk3","hash","hmac","md5","serpent","sha2","sha3","twofish"],"created_at":"2024-10-03T22:13:01.487Z","updated_at":"2025-05-13T10:41:31.505Z","avatar_url":"https://github.com/paolostivanin.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GTKCrypto\n\u003ca href=\"https://circleci.com/gh/paolostivanin/GTKCrypto\"\u003e\n  \u003cimg alt=\"CircleCI\" src=\"https://circleci.com/gh/paolostivanin/GTKCrypto.svg?style=svg\"/\u003e\n\u003c/a\u003e\n\n\n## Features\n* Encrypt and decrypt files using AES, Twofish, Serpent or Camellia using either CBC or CTR mode. Key size for all algorithms is 256 bits.\n* Encrypt and decrypt text using one of the aforementioned algorithms;\n* Sign a given file using one of your GPG keys. Of course you can also verify the signature for a given file;\n* Compute hashes for a chosen file (MD5, GOST94, SHA1, SHA2, SHA3, and Whirlpool);\n\n## Security\n* Encrypt-then-MAC. The plain text is encrypted and then the MAC of the encrypted text is computed and appended to the cipher text.\n* Confidentiality is given by AES/Twofish/Serpent/Camellia operating in either CBC or CTR mode using a key size of 256 bits;\n* Integrity is given by the MAC calculation (MAC = HMAC+SHA3-512);\n* The input key is derived using PBKDF2 with 100'000 iterations and using SHA3-512 as hash algo;\n* The key is temporarily stored inside a portion of secure memory which is erased before the program exits;\n\n### Text Encryption\n* Encrypt-then-TAG\n* Plaintext is encrypted using AES-256 in GCM mode\n* The input key is derived using PBKDF2 with 150'000 iterations and using SHA3-256 as hash algo;\n* Data is always stored in a secure memory pool allocated by Gcrypt\n* The resulting buffer has the following structure: `base64(IV,SALT,encrypt(plaintext),TAG)`\n\n## Requirements\n|Name|Min Version|\n|----|-----------|\n|GTK+|3.20|\n|Glib|2.48.0|\n|libgcrypt|1.7.0|\n|gpgme|1.8.0|\n\n\n## Screenshots\n![Main window](/data/screenshots/mainwin.png?raw=true \"Main window\")\n\n## How to compile\n* `$ git clone https://github.com/paolostivanin/GTKCrypto.git`\n* `$ cd GTKCrypto`\n* `$ mkdir build \u0026\u0026 cd $_`\n* `$ cmake -DCMAKE_INSTALL_PREFIX=/usr ..`\n* `$ make`\n* `$ sudo make install`\n\n\n## How can I trust your program?\nDon't trust me, trust the code. But if you really want to be sure that I'm not doing things in the wrong way, then you can just encrypt a file using GTKCrypto and write your own decryption program.\nThis is a relatively quick and easy task to achieve, just be sure to first understand the structure of the encrypted file (spoiler: `enc_file = metadata + encrypted_data + HMAC`). More info [HERE](https://github.com/paolostivanin/GTKCrypto/blob/master/src/crypt-common.h).\n\n\n## Testing\n* Before each release, I run PVS Studio in order to catch even more errors and/or corner cases\n* With every commit to master, GTKCrypto is compiled in CircleCI against different distros\n\n\n## Latest version\nStable and pre-release versions can be found [HERE](https://github.com/paolostivanin/GTKCrypto/releases)\n\n\n## Notes\nThis software is licensed under the GNU General Public License version 3 and above.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaolostivanin%2Fgtkcrypto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpaolostivanin%2Fgtkcrypto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaolostivanin%2Fgtkcrypto/lists"}