secretlounge / secretlounge-ng

A bot to make an anonymous group chat on Telegram
119 stars 53 forks source link

Replace depreated `crypt` #46

Closed sfan5 closed 4 months ago

sfan5 commented 4 months ago

https://github.com/fedora-python/crypt_r looks promising

NaruFGT commented 4 months ago

This might be a big ask but is there any way that we could try to call the system's crypt library if it has one before resorting to this one?

sfan5 commented 4 months ago

I can simply try importing crypt before r_crypt, if that's what you mean. Anything more than that (e.g. CFFI) would be unreasonable.

NaruFGT commented 4 months ago

Thanks for the response, yeah CFFI was exactly what I had in mind, though I'm not familiar enough with python to know the ins and outs of how to use it. And yeah, I can understand why that's beyond what you'd want to try to maintain. Thanks for considering.