branca icon indicating copy to clipboard operation
branca copied to clipboard

Authenticated and encrypted API tokens written in Rust. A secure JWT alternative.

Results 4 branca issues
Sort by recently updated
recently updated
newest added

In extension to #29, perhaps it would be beneficial to add a method to the builder, that didn't require a key to be passed, but generated it randomly instead. What...

The `ttl` field of the `Branca` struct is never used. Instead, `decode()` takes a separate TTL. Maybe the `ttl` field should be removed?

`key()`, `nonce()`, `ttl()` and `timestamp()` all consume `self`. This means the builders instance needs to be cloned if a user wants to continue using it after calling any of the...

So encode could take `AsRef` instead of `&[u8]`. Originally suggested by @J-F-Liu in https://github.com/return/branca/issues/10#issuecomment-727861486