From 34a0ec4089ad7bcf730e5399d7e05c119743946d Mon Sep 17 00:00:00 2001 From: zotlabs Date: Thu, 5 Oct 2017 20:09:21 -0700 Subject: Add JSalmon signing library for Zot6. See https://macgirvin.com/wiki/mike/Zot%2BVI/Encryption/Signatures --- Zotlabs/Lib/JSalmon.php | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 Zotlabs/Lib/JSalmon.php diff --git a/Zotlabs/Lib/JSalmon.php b/Zotlabs/Lib/JSalmon.php new file mode 100644 index 000000000..763f687fa --- /dev/null +++ b/Zotlabs/Lib/JSalmon.php @@ -0,0 +1,38 @@ + true, + 'data' => $data, + 'data_type' => $data_type, + 'encoding' => $encoding, + 'alg' => $algorithm, + 'sigs' => [ + 'value' => $signature + 'key_id' => base64url_encode($key_id) + ] + ]); + + } +} \ No newline at end of file -- cgit v1.2.3