Skip to content

Commit

Permalink
intend
Browse files Browse the repository at this point in the history
  • Loading branch information
themark147 committed Nov 12, 2024
1 parent 5a20bb0 commit 11e3e33
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions python-sync-actions/src/user_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,19 +90,19 @@ def hash_hmac(self, algorithm, key, message):

def hash(self, algorithm, message):
"""
Execute PHP hash function
Args:
algorithm:
message:
Execute PHP hash function
Args:
algorithm:
message:
Returns:
Returns:
"""
"""

command = f"php -r 'echo hash(\"{algorithm}\", \"{message}\");'"
stdout, stderr = perform_shell_command(command, 'hash function')
command = f"php -r 'echo hash(\"{algorithm}\", \"{message}\");'"
stdout, stderr = perform_shell_command(command, 'hash function')

return stdout
return stdout

def time(self):
return int(time.time())
Expand Down

0 comments on commit 11e3e33

Please sign in to comment.