Encode and decode hashids (hashids.org).
This plugin allows encoding and decoding ids using hashids.org implementation.
- via PackageControl: https://packagecontrol.io/packages/Hashids
- or by cloning https://github.com/zergin/sublime-hashids.git into sublime package directory
- initialize configuration (set salt) Project -> Hashids -> Add project settings
- encode/decode ids
- ...
- profit!
{
"settings":
{
"hashids":
{
"salt": "your-salt-here"
}
}
}
Plugin supports providing inline salt through key-value pairs in de/encoded strings. Examples:
salt=abc;ids=1,2,3 => G7CYSG
salt=abc;1,2,3 => G7CYSG
salt=abc;hash=G7CYSG => 1,2,3
salt=abc;G7CYSG => 1,2,3
© 2015 Marcin Kurzyna <m.kurzyna@gmail.com>. MIT license, see the LICENSE file.