branca
Version, currently 0.2.04 versions
- 0.2.0latestMar 28, 2021
- 0.1.2not indexedMar 25, 2021
- 0.1.1not indexedMar 25, 2021
- 0.1.0not indexedMar 25, 2021
gitlab.com/eniehack/branca.cr
[W.I.P] branca(https://github.com/tuupola/branca-spec) implemention for crystal-lang(https://crystal-lang.org).
Installation
# Add this to your shard.yml
dependencies:
branca:
gitlab: eniehack/branca.cr
version: ~> 0.2.0Then run:
shards installshard.yml
- Crystal
0.36.1- License
- Apache-2.0
- Author
- eniehack
Dependencies
Runtime Dependencies
README
branca-cr
branca implemention for crystal-lang(https://crystal-lang.org).
Installation
-
Add the dependency to your
shard.yml:dependencies: branca: gitlab: eniehack/branca.cr -
Run
shards install
Usage
encode tokens
require "branca"
config = Branca::Configuration.new ttl: 3600
branca = Branca::Token.new(config)
token = branca.encode "Hello world!".to_slice
decode tokens
require "branca"
config = Branca::Configuration.new ttl: 3600
branca = Branca::Token.new(config)
token = branca.decode("870S4BYxgHw0KnP3W9fgVUHEhT5g86vJ17etaC5Kh5uIraWHCI1psNQGv298ZmjPwoYbjDQ9chy2z")
Development
TODO: Write development instructions here
License
copyright (c) 2021 eniehack
This software is licensed under Apache License 2.0.
but, ./spec/test_vectors.jsonis provided from https://github.com/tuupola/branca-spec/blob/527997e1c954d450a503b12099652bbdf7fdb168/test_vectors.json , licensed by MIT/X11 License.
so, this file is owned copyright by tuupola.
Contributing
- Fork it (https://gitlab.com/eniehack/branca-cr/fork)
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
Contributors
- eniehack - creator and maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.2.0- Tagged
- Mar 28, 2021
- Commit
0a16902b1715- Crystal
0.36.1- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
gitlab.com/eniehack/branca.cr
Metadata
- Created
- Aug 16, 2026
- Updated
- Aug 16, 2026
- Synced
- Aug 16, 2026
- Versions
- 4