MCPcopy Create free account
hub / github.com/chasingboy/Xtools / Md5EncryptTextCommand

Class Md5EncryptTextCommand

xtools.py:372–376  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

370
371
372class Md5EncryptTextCommand(sublime_plugin.TextCommand):
373 def run(self, edit):
374 text = get_buffer_text(self.view).strip('\n')
375 text = hashlib.md5(text.encode()).hexdigest()
376 panel_print(self.view, edit, text)
377
378
379class Md5EncryptLineCommand(sublime_plugin.TextCommand):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected