Python Forum
how to encode and decode same value
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to encode and decode same value
#3
Might be better to first encode random data, then decode the result to see if you get the original data, instead of the other way around. base64 encrypted data will always be printable ASCII characters so you will not run into the problem with null bytes and unprintable characters.
Reply


Messages In This Thread
how to encode and decode same value - by absolut - Sep-07-2020, 01:50 PM
RE: how to encode and decode same value - by TomToad - Sep-08-2020, 09:46 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  encode/decode to show correct country letters in a CTk combobox janeik 2 828 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 5,411 Apr-24-2023, 03:40 PM
Last Post: ctrldan
  Decode string ? JohnnyCoffee 1 889 Jan-11-2023, 12:29 AM
Last Post: bowlofred
  UnicodeEncodeError: 'ascii' codec can't encode character '\xfd' in position 14: ordin Armandito 6 2,901 Apr-29-2022, 12:36 PM
Last Post: Armandito
  'NoneType' object has no attribute 'encode' bhagyashree 6 9,059 Nov-05-2020, 03:50 PM
Last Post: deanhystad
  TypeError: ENCODE Method, str instead of byte Rajath 1 2,847 May-09-2020, 06:05 PM
Last Post: bowlofred
  struct.decode() and '\0' deanhystad 1 3,340 Apr-09-2020, 04:13 PM
Last Post: TomToad
  Getting decode error. shankar 8 10,584 Sep-20-2019, 10:05 AM
Last Post: tinman
  asyncio encode and decode, how good are they? CoderOne 2 2,415 Sep-03-2019, 11:06 PM
Last Post: wavic
  UnicodeEncodeError: 'charmap' codec can't encode character '\u2019' in position 23: c kapilan15 2 4,499 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