Search found 4 matches
- Fri Jul 02, 2021 7:13 pm
- Forum: General Discussion and Questions
- Topic: Line number of exception?
- Replies: 5
- Views: 5715
- Mon Feb 08, 2021 3:15 am
- Forum: General Discussion and Questions
- Topic: what is the output encoding of ucryptolib.encrypt ?
- Replies: 3
- Views: 1903
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...
- Thu Feb 04, 2021 2:10 am
- Forum: General Discussion and Questions
- Topic: what is the output encoding of ucryptolib.encrypt ?
- Replies: 3
- Views: 1903
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...
- Tue Feb 02, 2021 4:15 am
- Forum: Programs, Libraries and Tools
- Topic: mpyaes - utility library around ucryptolib.aes
- Replies: 4
- Views: 3869
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...