'Is it possible to change the encryption of the session string generator in pyrogram?

There was a question, I have a project where the session string of telegram accounts are saved for subsequent work with them. The program in which I use these session strings, as I was told, accepts 32bit strings, how can I change the generation of strings and where, so that that program could safely accept these strings to work with them.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source