From e768ebad2c40239f88f4e1c2a4e4171e3e53ee00 Mon Sep 17 00:00:00 2001 From: Satoshi Nakamoto <65907137+SatoshiNakamotoBitcoin@users.noreply.github.com> Date: Fri, 22 Dec 2023 19:47:58 +0100 Subject: [PATCH] Update sha256.py --- pybitblock/sha256.py | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/pybitblock/sha256.py b/pybitblock/sha256.py index 36f823a..19711e7 100644 --- a/pybitblock/sha256.py +++ b/pybitblock/sha256.py @@ -5,9 +5,17 @@ import time import curses def sha256_hash(input_data): - sha256 = hashlib.sha256() - sha256.update(input_data.encode()) - return sha256.hexdigest() + try: + clear() + blogo() + output = render( + "sha256", colors=['yellow'], align='left', font='tiny' + ) + + print(output) + sha256 = hashlib.sha256() + sha256.update(input_data.encode()) + return sha256.hexdigest() def binario_de_hexadecimal(hex_string): """Convierte una cadena hexadecimal en una cadena binaria.""" @@ -88,3 +96,6 @@ def mainSHA(stdscr): def ex(): # Ejecutar el proceso en un bucle de `curses` curses.wrapper(mainSHA) + input("\a\nContinue...") + except: + pass