This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-01-22
Channels
- # announcements (18)
- # babashka (9)
- # beginners (22)
- # biff (2)
- # calva (17)
- # clj-kondo (5)
- # clojure (9)
- # clojure-europe (25)
- # clojure-nl (1)
- # clojure-norway (3)
- # clojure-uk (7)
- # clojuredesign-podcast (6)
- # clojurescript (61)
- # cursive (11)
- # data-science (1)
- # datahike (3)
- # datomic (2)
- # humbleui (2)
- # hyperfiddle (7)
- # jobs (1)
- # jobs-discuss (4)
- # joyride (1)
- # overtone (7)
- # re-frame (2)
- # reitit (9)
- # releases (2)
- # remote-jobs (8)
- # scittle (1)
- # shadow-cljs (48)
- # squint (8)
I'm writing a Babashka script that needs to "hash" some string using the bcrypt
algorithm. Unfortunately, there is a hard requirement. The script needs to be self-contained, it needs to run without a JRE/JVM being available. I work around this by creating an uberjar, and then an executable with it, as documented. This part works just fine.
But not having a JVM available means that I can't use pods like pod-babashka-buddy (not that this pod provides a naked bcrypt, which is what I need, but that's another issue).
What are my options here, if any? Thanks a lot in advance 😊
> But not having a JVM available means that I can't use pods like pod-babashka-buddy pods do NOT require a JVM
This is what I'd like to achive with Babashka. The minimal example runs fine with clj
.
https://gist.github.com/iarenaza/d7e22484f825f188e4fc393918a1ae7e
yeah, this at.favre.lib.crypto.bcrypt
isn't going to work, since it's not part of the JDK
if you want a fast starting script with bcrypt, you could try #C029PTWD3HR (Node.js) as well, but that's a different platform