Recent

Author Topic: A trivial question for base64  (Read 741 times)

xinyiman

  • Hero Member
  • *****
  • Posts: 2256
    • Lazarus and Free Pascal italian community
A trivial question for base64
« on: April 17, 2019, 12:27:05 pm »
Hi guys, I have multiple strings that I need to convert to base64 and then chain them together with a type |

stringb64_1|stringb64_2|stringb64_3|

because then with a split on the character | I have to recover the three strings. I wondered | is it a font I can use or can it be a character returned by encoding in base64? Thanks for the info
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

ASerge

  • Hero Member
  • *****
  • Posts: 2223
Re: A trivial question for base64
« Reply #1 on: April 17, 2019, 01:28:10 pm »
Base64 chars: ['a'..'z', 'A'..'Z', '0'..'9', '+', '/'] and filler '='. Char '|' is not valid and can be used to separate strings, or you can encode a regular string separator in base64.

xinyiman

  • Hero Member
  • *****
  • Posts: 2256
    • Lazarus and Free Pascal italian community
Re: A trivial question for base64
« Reply #2 on: April 18, 2019, 08:24:56 am »
Thank you very much
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

 

TinyPortal © 2005-2018