Completed
Push — master ( e7778f...95d0df )
by
unknown
33s
created

ShaIt.run()   A

Complexity

Conditions 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
c 1
b 0
f 0
dl 0
loc 4
rs 10
1
from __future__ import print_function
2
3
from Crypto.Hash import SHA
4
5
from st2actions.runners.pythonrunner import Action
6
7
__all__ = [
8
    'ShaIt'
9
]
10
11
12
class ShaIt(Action):
13
    def run(self, message, handle):
14
        sha_message = message + handle
15
16
        return SHA.new(sha_message).hexdigest()
17