After 2 hours of trial and error, I must admit that the erlang crypto module is really confusing
#myelixirstatus
:public_key has a higher level API for sign and verify that takes care of that for you
-
-
you typically don't want to deal with :crypto directly for asymmetrical crypto, only for symmetrical
-
I ended up using :public_kry for parsing the PEM file, and :crypto for signing :public_key can be used for the whole thing?
- 2 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
as binary, but I couldnt figure out how to format the thing