Skip to content

SublimeText 3 plugin for encoding and decoding hashids (hashids.org).

License

Notifications You must be signed in to change notification settings

zergin/sublime-hashids

Repository files navigation

Sublime Hashids

Encode and decode hashids (hashids.org).

Description

This plugin allows encoding and decoding ids using hashids.org implementation.

Instalation

Usage

  • initialize configuration (set salt) Project -> Hashids -> Add project settings
  • encode/decode ids
  • ...
  • profit!

Initialize configuration

{
    "settings":
    {
        "hashids":
        {
            "salt": "your-salt-here"
        }
    }
}

Using without project configuration

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

License

© 2015 Marcin Kurzyna <m.kurzyna@gmail.com>. MIT license, see the LICENSE file.

About

SublimeText 3 plugin for encoding and decoding hashids (hashids.org).

Resources

License

Stars

Watchers

Forks

Packages

No packages published