Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to convert binary to text in python

message = "Hello World!"
binary = " ".join(format(ord(c), "b") for c in message)

binary_text = binary
normal = "".join(chr(int(c, 2)) for c in binary_text.split(" "))

print(normal,binary)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #convert #binary #text #python
ADD COMMENT
Topic
Name
1+7 =