Files
Pentesting/binary_ascii_text/ascii_input_to_zeichen.py
2026-04-17 09:01:34 -05:00

23 lines
611 B
Python
Executable File

def ascii_to_text(ascii_input):
# Split the ASCII input by spaces
ascii_values = ascii_input.split()
# Convert each ASCII value to the corresponding character
characters = [chr(int(value)) for value in ascii_values]
# Join the characters to form the resulting text
text_output = ''.join(characters)
return text_output
def main():
ascii_input = input("Bitte geben Sie ASCII-Zahlen ein (getrennt durch Leerzeichen): ")
text_output = ascii_to_text(ascii_input)
print("\nText Ausgabe:")
print(text_output)
if __name__ == "__main__":
main()