{"id":25867069,"url":"https://github.com/joestr/enka","last_synced_at":"2025-07-08T06:39:05.058Z","repository":{"id":130928938,"uuid":"603896303","full_name":"joestr/enka","owner":"joestr","description":"Enkapsulate your data!","archived":false,"fork":false,"pushed_at":"2024-01-28T11:23:20.000Z","size":54,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-02T01:08:50.872Z","etag":null,"topics":["aes","cryptography","decryption","encryption","rsa"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"eupl-1.2","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/joestr.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-02-19T21:50:23.000Z","updated_at":"2023-03-07T21:00:35.000Z","dependencies_parsed_at":"2024-01-28T13:18:38.763Z","dependency_job_id":"accb11be-b0ab-42f7-9c35-cd1c6260ef7c","html_url":"https://github.com/joestr/enka","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joestr%2Fenka","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joestr%2Fenka/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joestr%2Fenka/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joestr%2Fenka/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joestr","download_url":"https://codeload.github.com/joestr/enka/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241454849,"owners_count":19965473,"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","cryptography","decryption","encryption","rsa"],"created_at":"2025-03-02T03:34:04.522Z","updated_at":"2025-03-02T03:34:05.137Z","avatar_url":"https://github.com/joestr.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# enka\n_Enkapsulate_ your date!\n\n_enka_ is a tool to encrypt strings to a format, which can be decrypted by other tools and programs too.\n\n## The problem\nEncrypting data requires knowledge of certain parameters like the encryption algorithm etc.\nOpenSSL does not include such information in its output. So a solution is needed.\n\n## The solution\n_enka_ steps in and provides a solution.\n\n```\n$ ./enka encrypt --algo aes256cbc --kdf pbkdf2:650000:sha256 --text kasnudelisbesseralswienerschnitzel --key obaehrlich\n%enka%v1%aes256cbc%pbkdf2:650000:sha256%DH3Z4u0DeLk=%RoTCnO59r8pe2PeJDJoh1Q==%sWyo2KkRVk4PfgWAx/OeYb46SeDXwn/pUhOn2/6rAKXBr/w233cfavspr0GThMXP\n$ \n```\nThis can be dissected into following parts:  \n```\n                program enka\n                version v1\n              algorithm aes256cbc\nkey derivation function pbkdf2:650000:sha256 (function : iteration count : hash function)\n                   salt DH3Z4u0DeLk=\n   intialization vector RoTCnO59r8pe2PeJDJoh1Q==\n         encrypted text sWyo2KkRVk4PfgWAx/OeYb46SeDXwn/pUhOn2/6rAKXBr/w233cfavspr0GThMXP\n```\n\nWith that information the text can be decrypted by other programs:\n```\n$ echo $(echo -n \"sWyo2KkRVk4PfgWAx/OeYb46SeDXwn/pUhOn2/6rAKXBr/w233cfavspr0GThMXP\" | openssl enc -d -base64 -A -aes-256-cbc -pbkdf2 -iter 650000 -md sha256 -S 0c7dd9e2ed0378b9 -iv 4684c29cee7dafca5ed8f7890c9a21d5 -pass pass:obaehrlich)\nkasnudelisbesseralswienerschnitzel\n$ \n```\n\nBut using the _enka_ tool you can get your result more quickly:\n```\n$ echo $(./enka decrypt --string %enka%v1%aes256cbc%pbkdf2:650000:sha256%DH3Z4u0DeLk=%RoTCnO59r8pe2PeJDJoh1Q==%sWyo2KkRVk4PfgWAx/OeYb46SeDXwn/pUhOn2/6rAKXBr/w233cfavspr0GThMXP --key obaehrlich)\nkasnudelisbesseralswienerschnitzel\n$ \n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoestr%2Fenka","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoestr%2Fenka","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoestr%2Fenka/lists"}