branca icon indicating copy to clipboard operation
branca copied to clipboard

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

Results 5 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

Updates the requirements on [getrandom](https://github.com/rust-random/getrandom) to permit the latest version. Changelog Sourced from getrandom's changelog. [0.3.2] - 2025-03-17 Added efi_rng opt-in backend #570 linux_raw opt-in backend #572 .cargo/config.toml example in...

dependencies
rust