Given the following Python script.
import base64
secret_data = "Malware, you can run but you can't hide"
b32encoded_data=base64.b32encode(secret_data.encode('utf-8'))
b64encoded_data=base64.b64encode(secret_data.encode('utf-8'))
a85encoded_data=base64.a85encode(secret_data.encode('utf-8'))
Write the value of the following variables:
Code:
# importing the package import base64 # message to encode secret_data = "Malware, you can run but you can't hide" # encoding messages in different encodings using base64 package b32encoded_data=base64.b32encode(secret_data.encode('utf-8')) b64encoded_data=base64.b64encode(secret_data.encode('utf-8')) a85encoded_data=base64.a85encode(secret_data.encode('utf-8')) # to get the value we print the data in the variabels print('Data in variable "b32encoded_data":', b32encoded_data) print('Data in variable "b64encoded_data":', b64encoded_data) print('Data in variable "a85encoded_data":', a85encoded_data)
Data in variable "b32encoded_data":
b'JVQWY53BOJSSYIDZN52SAY3BNYQHE5LOEBRHK5BAPFXXKIDDMFXCO5BANBUWIZI='
Data in variable "b64encoded_data":
b'TWFsd2FyZSwgeW91IGNhbiBydW4gYnV0IHlvdSBjYW4ndCBoaWRl'
Data in variable "a85encoded_data":
b'9jqj^@<,p1+F.mJ+Ceht+EDUB+C]J8+F.mJ+Ceht-ZgJEBk1c'
FOR HELP PLEASE COMMENT.
THANK YOU
Get Answers For Free
Most questions answered within 1 hours.