Questions tagged [binascii]

50 questions
0
votes
2 answers

Python: Alternative to binascii b-function for predefined string

I want to use the hashlib function which requires byte-representation of strings. In this example from the Python documentation they solve this by putting a 'b' in front of the string: >>> import hashlib, binascii >>> dk =…
reaktard
  • 23
  • 6
-1
votes
1 answer

Xbee image transfer python

Hi there i'm quite new with xBee and struggle with data transferring. My objective is to take picture with Raspberry pi wide and send it back to computer via xBee by turn that image to hexlify code. after recieving the code with python on computer i…
-1
votes
1 answer

Python - missing zeep and binascii

I am trying to run the following yml file. When it runs I get the error below. I use command conda env create -f myTool.yml myTool.yml name: myTool dependencies: - python=3.7 - xlrd - openpyxl - re2 - zeep - pandas - binascii - requests The Error…
Kachopsticks
  • 125
  • 1
  • 13
-1
votes
1 answer

Python string with binary data base64 encode gives TypeError

Im struggling with the following issue: I have an array with the following binary data (after encryption): data = '\x03×ÿ\x7f*J\x9aÖ¯AÀM|ü{R2+M°ø2\x83.\x1f@µ³U¡VT' I want to base64 encode it. When I do binascii.b2a_base64(data) I'm getting…
agienka
  • 396
  • 1
  • 2
  • 11
1 2 3
4