• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

Soranya

The Eyes!
116 Badges
Jan 10, 2012
1.385
1.807
  • Age of Wonders III
  • Shadowrun: Hong Kong
  • Shadowrun: Dragonfall
  • Shadowrun Returns
  • Europa Universalis IV: Dharma
  • Stellaris: Distant Stars
  • Cities: Skylines - Parklife
  • Surviving Mars: Digital Deluxe Edition
  • Europa Universalis IV: Rule Britannia
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Hearts of Iron IV: Expansion Pass
  • Surviving Mars: First Colony Edition
  • Tyranny - Tales from the Tiers
  • Hearts of Iron IV: Death or Dishonor
  • Surviving Mars
  • Crusader Kings II: Monks and Mystics
  • Hearts of Iron IV: Together for Victory
  • Tyranny: Archon Edition
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Cadet
  • Stellaris: Galaxy Edition
  • Age of Wonders: Planetfall
  • Stellaris: Nemesis
  • Stellaris: Necroids
  • Europa Universalis 4: Emperor
  • Crusader Kings III: Royal Edition
  • Crusader Kings III
  • Imperator: Rome - Magna Graecia
  • Stellaris: Federations
  • Hearts of Iron IV: La Resistance
  • BATTLETECH: Heavy Metal
  • Stellaris: Lithoids
  • Crusader Kings II: Charlemagne
  • BATTLETECH: Season pass
  • Stellaris: Ancient Relics
  • Surviving Mars: First Colony Edition
  • Prison Architect
  • Hearts of Iron IV: Expansion Pass
  • Imperator: Rome
  • Imperator: Rome Deluxe Edition
  • Europa Universalis IV: Golden Century
  • Stellaris: Megacorp
  • BATTLETECH: Flashpoint
  • Stellaris: Galaxy Edition
  • Europa Universalis IV: El Dorado
  • Cities: Skylines Deluxe Edition
  • Cities: Skylines
  • 500k Club
I just stumbled by accident over my saved credentials for the PDX Launcher, and while the PW is encrypted i did not fail to notice that the Encrpyted String has several identical Signs at the end, beeing of equal length on all my PDX games.
My conclusion is that you could backtrack to the actual lenght of the PW by having the String (not the actual PW).
While not a major security issue i think that the string should be filled up with random Bytes instead of the same one if the PW is too short to use the whole encrpytion key length.

Code:
user="Name::mailprovider.domain"
password="ENCRYPTEDPASSWORDBUTTHEEND======"

The above is an example how my pw file looks - o.c. it doesnt say "ENCRYPTEDPASSWORDBUTTHEEND" but some random Letters plus the trailing "="
Those trailing "="s are all the same count no matter what game i look my PW up, while the actual password is encrypted differently everytime.

If my conclusion is wrong and the trailing "="s are there by default no matter what the PW is then i appologize for bringing it up.
 
The password is encrypted with AES, but in order to save the resulting binary info as a fixed-length string (divisible by 16) it is padded. This conversion and padding is done via a third-party library so it would be annoying to change it. I will double check with the person who wrote our code too, but they are not here today.