Search found 4 matches

by vodkawasserfall
Fri Jul 02, 2021 7:13 pm
Forum: General Discussion and Questions
Topic: Line number of exception?
Replies: 5
Views: 5713

Re: Line number of exception?

Bump
by vodkawasserfall
Mon Feb 08, 2021 3:15 am
Forum: General Discussion and Questions
Topic: what is the output encoding of ucryptolib.encrypt ?
Replies: 3
Views: 1896

Re: what is the output encoding of ucryptolib.encrypt ?

Not quite sure I understand what you're asking, but when MicroPython (and Python) print a bytes or bytearray object, it attempts to print like a regular string, but any byte that isn't a printable ascii character gets shown as \xAA (where AA is the hex of that byte). thanks! exactly what i meant. I...
by vodkawasserfall
Thu Feb 04, 2021 2:10 am
Forum: General Discussion and Questions
Topic: what is the output encoding of ucryptolib.encrypt ?
Replies: 3
Views: 1896

what is the output encoding of ucryptolib.encrypt ?

hi! Q1: what is the output encoding of bytearray? bytearray(b'\xe4\xb3\x90\xc3\x0b\x80%\xb3\xc2\n\xc3nY\xdfv\xc9\xd3X8\x82Y\xd8\xd7\xbc\xd0\xafP\xbdJ~\xe5\xdf\x8a\xbc\x9cU\xfd\xa3\x9a\x8d\x1a\xed\xdd\x99\x9a\xa5Ll\xff\xaa\xef\xf0\xfbU)o\xb11\xacC\x981\x0b\xdf') Q2: i've tried encrypting strings on a...
by vodkawasserfall
Tue Feb 02, 2021 4:15 am
Forum: Programs, Libraries and Tools
Topic: mpyaes - utility library around ucryptolib.aes
Replies: 4
Views: 3850

Re: mpyaes - utility library around ucryptolib.aes

hi there! is it possible to encode the bytearray to something like hex to be compatible with a php approach ? my goal is to exchange encrypted strings/json between a php/webserver and an ESP32 bytearray(b'\xe4\xb3\x90\xc3\x0b\x80%\xb3\xc2\n\xc3nY\xdfv\xc9\xd3X8\x82Y\xd8\xd7\xbc\xd0\xafP\xbdJ~\xe5\xd...