Использование HMAC с SHA-256

This commit is contained in:
2024-01-14 22:10:21 +07:00
parent 7a0dc6664e
commit 0facc5a692
19 changed files with 361 additions and 11 deletions
+10 -11
View File
@@ -1,16 +1,15 @@
# This is a sample Python script.
# Press Shift+F10 to execute it or replace it with your code.
# Press Double Shift to search everywhere for classes, files, tool windows, actions, and settings.
import sys
from Block import Block
def print_hi(name):
# Use a breakpoint in the code line below to debug your script.
print(f'Hi, {name}') # Press Ctrl+F8 to toggle the breakpoint.
def main():
if len(sys.argv) == 4:
block = Block(sys.argv[1], sys.argv[2], sys.argv[3])
else:
block = Block('from', 100, 'to_whom')
block.block_creator()
block.blockchain_checker()
# Press the green button in the gutter to run the script.
if __name__ == '__main__':
print_hi('PyCharm')
# See PyCharm help at https://www.jetbrains.com/help/pycharm/
main()