{"id":23284204,"url":"https://github.com/agilecreativity/encrypted-config","last_synced_at":"2025-04-06T15:15:16.184Z","repository":{"id":62432562,"uuid":"83358386","full_name":"agilecreativity/encrypted-config","owner":"agilecreativity","description":"Encrypt configuration library for Clojure","archived":false,"fork":false,"pushed_at":"2017-03-04T20:46:51.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-30T05:01:57.085Z","etag":null,"topics":["clojure","configuration","encryption-tool","security-hardening"],"latest_commit_sha":null,"homepage":"https://github.com/agilecreativity/encrypted-config","language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"epl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/agilecreativity.png","metadata":{"files":{"readme":"README.org","changelog":"CHANGELOG.org","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-27T21:24:06.000Z","updated_at":"2017-03-02T05:57:40.000Z","dependencies_parsed_at":"2022-11-01T21:01:10.782Z","dependency_job_id":null,"html_url":"https://github.com/agilecreativity/encrypted-config","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/agilecreativity%2Fencrypted-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agilecreativity%2Fencrypted-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agilecreativity%2Fencrypted-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agilecreativity%2Fencrypted-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/agilecreativity","download_url":"https://codeload.github.com/agilecreativity/encrypted-config/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247500476,"owners_count":20948880,"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":["clojure","configuration","encryption-tool","security-hardening"],"created_at":"2024-12-20T01:38:38.676Z","updated_at":"2025-04-06T15:15:16.119Z","avatar_url":"https://github.com/agilecreativity.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"* encrypted-config\n\n[[https://clojars.org/encrypted-config][https://img.shields.io/clojars/v/encrypted-config.svg]]\n[[https://jarkeeper.com/agilecreativity/encrypted-config][https://jarkeeper.com/agilecreativity/encrypted-config/status.svg]]\n\nEasy encrypted your configuration in Clojure using the power of [[https://github.com/funcool/buddy][buddy]].\n\n** Basic Usage\n\n*** What you will need to use this library\n\n- [[https://www.java.com/en/download/][Java SDK]]\n- [[http://repo1.maven.org/maven2/org/clojure/clojure/1.8.0/clojure-1.8.0.zip][Clojure]]\n- [[http://leiningen.org/][Leiningen]] - Build tools for Clojure\n-\n\n*** Use in your project\n\n**** Leiningen/Boot\n#+BEGIN_SRC clojure :results nil\n  [encrypted-config \"0.1.1\"]\n#+END_SRC\n\n**** Gradle\n\n#+BEGIN_EXAMPLE\ncompile \"encrypted-config:encrypted-config:0.1.1\"\n#+END_EXAMPLE\n\n**** Maven\n#+BEGIN_SRC xml :results nil\n  \u003cdependency\u003e\n    \u003cgroupId\u003eencrypted-config\u003c/groupId\u003e\n    \u003cartifactId\u003eencrypted-config\u003c/artifactId\u003e\n    \u003cversion\u003e0.1.1\u003c/version\u003e\n  \u003c/dependency\u003e\n#+END_SRC\n\n** Basic Usage:\n\n**** Encrypt a given text\n\n#+BEGIN_SRC clojure :results nil\n  ;; To encrypted a given input-text using the secret-key\n  (str-\u003eencrypted input-text secret-key)\n\n  ;; You will get back the map of\n  ;; {:encrypted-key  \u003ckey-generated-by-the-system\u003e\n  ;;  :encrypted-text \u003cencrypted-text-that-you-can-use\u003e}\n#+END_SRC\n\n**** Decrypt value that previously encrypted\n\n#+BEGIN_SRC clojure :results nil\n  (str-\u003edecrypted encrypted-text encrypted-key secret-key)\n#+END_SRC\n\n** Example Usages\n\n#+BEGIN_SRC clojure :results nil\n  (let [input-text \"MyP@ssword!\"\n        secret-key \"MySec$tKey@\"\n        {:keys [encrypted-key\n                encrypted-text]}\n        (str-\u003eencrypted input-text secret-key)\n        ;; Now let's decrypt the text we have just encrypted\n        decrypted-text (str-\u003edecrypted encrypted-text\n                                       encrypted-key\n                                       secret-key)]\n    (do\n      (println (str \"FYI: input-text     : \" input-text))\n      (println (str \"FYI: secret-key     : \" secret-key))\n      (println (str \"FYI: encrypted-key  : \" encrypted-key))\n      (println (str \"FYI: encrypted-text : \" encrypted-text))))\n#+END_SRC\n\nYour result will be like:\n\n#+BEGIN_EXAMPLE\nFYI: input-text     : MyP@ssword!\nFYI: secret-key*    : MySec$tKey@\nFYI: encrypted-key* : b0ed81af1e42b826ccdcabc3fa059d0c\nFYI: encrypted-text : 3e8a19218245b48c5f546c902c75deb98077d7e2d7030afde9f0b10a8e3a6bb0\n#+END_EXAMPLE\n\nSo you can safely store the =encrypted-text= in the property file and decrypted it back safely.\n\n** Links\n\n- [[https://github.com/weavejester/crypto-random/blob/master/src/crypto/random.clj][crypto-random]]\n- [[https://github.com/funcool/buddy][buddy - security for Clojure]]\n\n** License\n\nCopyright © 2017 Burin Choomnuan\n\nDistributed under the Eclipse Public License either version 1.0 or (at\nyour option) any later version.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagilecreativity%2Fencrypted-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fagilecreativity%2Fencrypted-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagilecreativity%2Fencrypted-config/lists"}