Project

bollard

0.0
No commit activity in last 3 years
No release in over 3 years
Send a secure post somewhere
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0
~> 3.7

Runtime

>= 0
 Project Readme

Bollard

A way of securing API communications with a JWT header that verifies a payload given a known secret

Use

Install Bollard

gem install bollard

Use Bollard to :post messages

require "bollard"

Bollard.secure_post("https://my.endpoint/api", '{ "key_1": "val_1" }', "shared_secret_key")

Use Bollard to verify received messages

require "bollard"

Bollard.verify_post('{ "key_1": "val_1" }', "", "shared_secret_key")