babashka

https://github.com/babashka/babashka. Also see #sci, #nbb and #babashka-circleci-builds .
Travis Jefferson 2020-11-15T03:09:29.327400Z

Hello! I’m trying to “hand-craft” a signed AWS HTTP request following these instructions https://docs.aws.amazon.com/general/latest/gr/sigv4_signing.html One blocker that I’m hitting is the HMAC SHA256: looks like it’s possible via java.crypto, which isn’t part of bb I do also see that https://funcool.github.io/buddy-core/latest/02-mac.html supports it as well (presumably via java.crypto)

borkdude 2020-11-15T10:54:26.327800Z

ok cool

borkdude 2020-11-15T11:00:03.328Z

I think we could maybe have a pod around buddy / security (provided this is only data in / data out)

borkdude 2020-11-15T11:03:02.328200Z

but shelling out to openssl is a nice way too

🎉 1
Travis Jefferson 2020-11-15T13:21:32.328500Z

I’m happy with shelling out :thumbsup: up to you (of course) if/when to try incorporating `java.security` java.crypto🙂 I trust you

borkdude 2020-11-15T13:23:11.328700Z

It already has some java.security classes (for calculating SHA-256), just not java.crypto

👍 1
Travis Jefferson 2020-11-15T13:23:30.328900Z

yes, sorry, that’s what I meant

borkdude 2020-11-15T13:26:45.329400Z

If it comes up more often, I'll consider it. Thanks!

❤️ 1
Travis Jefferson 2020-11-15T03:10:43.327600Z

I just had the idea to shell out to openssl directly, which seems like a super reasonable approach for my tinkering needs $ echo -n "value" | openssl sha256 -hmac "key"