cocagne / pysrp

Python implementation of the Secure Remote Password protocol (SRP)
MIT License
113 stars 42 forks source link

telegram srp #49

Closed iamDonkey closed 2 years ago

iamDonkey commented 2 years ago

is it possible to implement telegram srp https://core.telegram.org/api/srp using this library?

cocagne commented 2 years ago

The hashing, salting, math, and padding used in the telegram SRP protocol differs significantly from RFC5054 which pysrp is based on. I don't think you'd want to try and extend this library to simultaneously support both protocols but you certainly could use pysrp as a guide for implementing a new library tailored specifically to the telegram protocol. It'd take some effort but from what I can see it should be fairly straightforward.

Tom

On Thu, May 12, 2022 at 8:03 AM iamDonkey @.***> wrote:

is it possible to implement telegram srp [ https://core.telegram.org/api/srp] using this library?

— Reply to this email directly, view it on GitHub https://github.com/cocagne/pysrp/issues/49, or unsubscribe https://github.com/notifications/unsubscribe-auth/AANMW7EMW7YP7W5PC2XJYCLVJT6SNANCNFSM5VYGBQDA . You are receiving this because you are subscribed to this thread.Message ID: @.***>