Fork me on GitHub
#babashka
<
2023-11-20
>
DeepReef1115:11:45

Is Babashka worth trying to run on freebsd? It seems like it would be better to stay with bash for not so complex script but I'm wondering if I should expand and go for something else that just a script

borkdude15:11:56

GraalVM native-image doesn't support freebsd out of the box as of today

👀 1
mmer15:11:37

I might be being dumb today, but how would I be able to use this java.security.KeyPairGenerator to generate sets of keys within bb? It is not the calling, but how do I get access in the bb.edn and the (ns) form.

borkdude15:11:28

It seems this class isn't available yet in bb, but we could add it. Could you explain the use case with a short example ?

mmer16:11:49

I need to write some code to load up a set of key pairs into a system. I would class it as very low priority. You have so many more other better things to do.

borkdude16:11:17

no worries. I'll add it in a branch and see how much binary size it adds

borkdude16:11:24

it doesn't add that much size, but I'd still like an example so I can test the interop

borkdude16:11:34

if I don't hear back, I'll assume it wasn't that important ;)

mmer16:11:18

Here is what I was going to follow - includes the keypair and ten the bouncycastle stuff as well. https://worace.works/2016/06/05/rsa-cryptography-in-clojure/

borkdude16:11:12

ah ok, bountycastle isn't going to work in bb but there is a buddy (based on bountycastle) pod: https://github.com/babashka/pod-babashka-buddy

borkdude16:11:35

but if it's just for learning, I'd just use JVM Clojure for this one

mmer16:11:48

Ok maybe that will do the key generation as well.