GPG integration is a requirement for an upcoming project. Glad to have
two options to choose from!

If you end up collaborating, please share your planned path forward so I
know which project to track. :)

On 10/23/2014 03:45 PM, Karsten Schmidt wrote:
> W00t! Thanks for the heads up! That looks far more fully featured
> indeed... bookmarked!
>
> Btw. I did search GH for "clojure gpg" and nothing turned up, should
> have searched for PGP instead... oh well! :)
>
> On 23 October 2014 18:18, Andrey Antukh <n...@niwi.be> wrote:
>> Hi Karsten
>>
>> There it already exist that: https://github.com/greglook/clj-pgp
>> And not directly related to pgp but reladed with bouncycastle and encryption
>> api: https://github.com/niwibe/buddy
>>
>> Would be awesome to colaborate!
>>
>> Greetings.
>> Andrey
>>
>> 2014-10-23 18:26 GMT+02:00 Karsten Schmidt <i...@toxi.co.uk>:
>>> Hi all, just a quick heads up for those who might want to integrate
>>> some encryption features into their projects and not struggle with a
>>> complex Java API to do so. This small library provides some utility
>>> functions atop of Bouncycastle's OpenPGP provider:
>>>
>>> http://thi.ng/crypto
>>>
>>> Example:
>>>
>>> (require '[thi.ng.crypto.core :refer :all])
>>>
>>> ;; generate a new RSA keypair, private w/ identity & passphrase, save
>>> as armored files
>>> (-> (rsa-keypair 2048)
>>>     (generate-secret-key "al...@example.org" "hello")
>>>     (export-keypair "alice.pub.asc" "alice.sec.asc" true))
>>> ; => nil
>>>
>>> ;; create dummy file
>>> (spit "foo.txt" "hello world!")
>>> ; => nil
>>>
>>> ;; note: for files `encrypt-file` can be used alternatively,
>>> ;; but `encrypt-stream` is more general purpose
>>> (encrypt-stream "foo.txt" "foo.gpg" (public-key "alice.pub.asc"))
>>> ; => nil
>>>
>>> ;; decrypt with secret key & passphrase
>>> (decrypt-stream "foo.gpg" "foo-decrypted.txt" (secret-key
>>> "alice.sec.asc") "hello")
>>> ; => #<BufferedOutputStream java.io.BufferedOutputStream@5dbe43af>
>>>
>>> (slurp "foo-decrypted.txt")
>>> ; => "hello world!"
>>>
>>> Best, K.
>>> --
>>> Karsten Schmidt
>>> http://postspectacular.com
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Clojure" group.
>>> To post to this group, send email to clojure@googlegroups.com
>>> Note that posts from new members are moderated - please be patient with
>>> your first post.
>>> To unsubscribe from this group, send email to
>>> clojure+unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/clojure?hl=en
>>> ---
>>> You received this message because you are subscribed to the Google Groups
>>> "Clojure" group.
>>> To unsubscribe from this group and stop receiving emails from it, send an
>>> email to clojure+unsubscr...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>
>>
>>
>> --
>> Andrey Antukh - Андрей Антух - <andrei.anto...@kaleidos.net> /
>> <n...@niwi.be>
>> http://www.niwi.be
>> https://github.com/niwibe
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Clojure" group.
>> To post to this group, send email to clojure@googlegroups.com
>> Note that posts from new members are moderated - please be patient with your
>> first post.
>> To unsubscribe from this group, send email to
>> clojure+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "Clojure" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to clojure+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to