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

Class Md5EncryptLineCommand

xtools.py:379–385  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

377
378
379class Md5EncryptLineCommand(sublime_plugin.TextCommand):
380 def run(self, edit):
381 texts = get_buffer_text(self.view).strip('\n').split('\n')
382 lines = ''
383 for line in texts:
384 lines += hashlib.md5(line.encode()).hexdigest() + '\n'
385 panel_print(self.view, edit, lines)
386
387
388# Command

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected