{:deps {com.outskirtslabs/sops {:mvn/version "0.1.0"}}}
;; Leiningen
[com.outskirtslabs/sops "0.1.0"]
ol.sops{:deps {com.outskirtslabs/sops {:mvn/version "0.1.0"}}}
;; Leiningen
[com.outskirtslabs/sops "0.1.0"]
(ns myapp.core
(:require [ol.sops :as sops]))
;; decrypt a sops file to string
(sops/decrypt-file-to-str "dev/test.sops.yml"
{:env {"SOPS_AGE_KEY_FILE" "dev/keys.txt"}})
;; => "hello: world\n"
;; encrypt a plaintext to a sfile
@(sops/encrypt-to-file "output.sops.json"
(edn->json {:foo "bar"})
{:age "age15905pjs5av9nyh8rdt4zrzn7x0mdud20eyf7tsvz63mygvsfhd9sclsh94"})
Copyright © 2025 Casey Link casey@outskirtslabs.com
Distributed under the MIT License
Can you improve this documentation?Edit on GitHub
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |