Python Forum
asyncio encode and decode, how good are they?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
asyncio encode and decode, how good are they?
#1
Am I correct in thinking that asyncio encode and decode are good for security? I can't find any information in the docs or even Google. Does anyone know how they work and if they would be good enough to use in a secure application or should I look to other libraries?
Reply
#2
I wasn't familiar with what you're asking about, but it looks like you're referring to streams. However, encode and decode there aren't part of strings, they're part of normal string operations (it looks like you were confused, reading the docs). As far as that goes, I'm not sure what you mean about security with respect to those two methods. It's just a matter of whether you're treating a bunch of characters as lower-level bytes or a unicode string.

I'm afraid you're asking a question with some goal in mind. It might be helpful to tell us the goal, and we can help you get there, rather than trying to go through things that could potentially be skipped to get to your goal.
Reply
#3
If you want to do some encryption on a data go look at PyNaCl module.
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  encode/decode to show correct country letters in a CTk combobox janeik 2 657 Sep-02-2023, 09:46 AM
Last Post: janeik
Question UnicodeEncodeError: 'ascii' codec can't encode character u'\xe8' in position 562: ord ctrldan 23 4,599 Apr-24-2023, 03:40 PM
Last Post: ctrldan
  Decode string ? JohnnyCoffee 1 785 Jan-11-2023, 12:29 AM
Last Post: bowlofred
  UnicodeEncodeError: 'ascii' codec can't encode character '\xfd' in position 14: ordin Armandito 6 2,641 Apr-29-2022, 12:36 PM
Last Post: Armandito
  'NoneType' object has no attribute 'encode' bhagyashree 6 8,737 Nov-05-2020, 03:50 PM
Last Post: deanhystad
  how to encode and decode same value absolut 2 2,279 Sep-08-2020, 09:46 AM
Last Post: TomToad
  TypeError: ENCODE Method, str instead of byte Rajath 1 2,735 May-09-2020, 06:05 PM
Last Post: bowlofred
  struct.decode() and '\0' deanhystad 1 3,139 Apr-09-2020, 04:13 PM
Last Post: TomToad
  Getting decode error. shankar 8 10,271 Sep-20-2019, 10:05 AM
Last Post: tinman
  UnicodeEncodeError: 'charmap' codec can't encode character '\u2019' in position 23: c kapilan15 2 4,375 Jan-14-2019, 09:11 PM
Last Post: Gribouillis

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020