Skip to content
forked from dangelov/hasher

A Sublime Text 2/3 plugin to generate various hash (digests), conversions like HTML entities from current selection string and a few other extras.

Notifications You must be signed in to change notification settings

malteb247/hasher

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 

Repository files navigation

String Hasher

Hasher is a small Sublime Text 2 & 3 Plugin that generates hashes from the selected text and some miscellaneous Unicode aware string conversions. Currently supported:

  • MD5
  • SHA1
  • Base64 Encode
  • Base64 Decode
  • URI Component Encode
  • URI Component Decode
  • Entity Encode
  • Entity Decode
  • Unicode Escape
  • Unicode Unescape

Key bindings

Use Cmd + Shift + P on Mac or Ctrl + Shift + P on Windows and type the command you need. Type hasher to see available commands. More to come.

Hasher commands in the Context Menu

IF you wish to add hasher commands to the context menu, you may add the following to the end of your User/Context.sublime-menu

[
	{ "caption": "-" },
	{
		"caption": "Hasher",
		"children":
		[
			{
				"caption": "MD5",
				"command": "md5",
				"args": {}
			},
			{
				"caption": "SHA1",
				"command": "sha1",
				"args": {}
			},
			{
				"caption": "Base64 Encode",
				"command": "base64_encode",
				"args": {}
			},
			{
				"caption": "Base64 Decode",
				"command": "base64_decode",
				"args": {}
			},
			{
				"caption": "URI Component Encode",
				"command": "uri_component_encode",
				"args": {}
			},
			{
				"caption": "URI Component Decode",
				"command": "uri_component_decode",
				"args": {}
			},
			{
				"caption": "Entity Encode",
				"command": "entity_encode",
				"args": {}
			},
			{
				"caption": "Entity Decode",
				"command": "entity_decode",
				"args": {}
			},
			{
				"caption": "Unicode Escape",
				"command": "unicode_escape",
				"args": {}
			},
			{
				"caption": "Unicode Unescape",
				"command": "unicode_unescape",
				"args": {}
			},
			{
				"caption": "Insert UNIX Timestamp",
				"command": "current_unix_timestamp",
				"args": {}
			}
		]
	}
]

How to install

Just look for Hasher and install.

Git Clone

Clone this repository in to the Sublime Text 2 or 3 "Packages" directory, which is located where ever the "Preferences" -> "Browse Packages" option in Sublime Text takes you.

Thanks to

  • titoBouzot - ST3 compatibility, fixes & additions
  • earshinov - base64 fixes
  • alimony - Fixes for HTML Entities + enabled support for both ST2 & 3 in a single package
  • ohaucke - Context menu for the included commands
  • komaflash - SHA224, SHA256, SHA384 and SHA512

License

Copyright (C) 2012-2013 Dino Angelov & Contributors

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

A Sublime Text 2/3 plugin to generate various hash (digests), conversions like HTML entities from current selection string and a few other extras.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%