rubenlagus / TelegramApi

Java library to create Telegram Clients
MIT License
300 stars 108 forks source link

support for pfs #8

Open amin1softco opened 8 years ago

amin1softco commented 8 years ago

hi plz add support for Perfect Forward Secrecy tnx

rubenlagus commented 8 years ago

I don't use secret chats at all with this library, so I'm not implementing PFS. In addition, the library lacks part of the secret chats schema, so it makes no sense.

amin1softco commented 8 years ago

i really speak about this paragraph not secret chat https://core.telegram.org/mtproto/auth_key

An alternative form of inner data (p_q_inner_data_temp) is used to create temporary keys, that are only stored in the server RAM and are discarded after at most expires_in seconds. The server is free to discard its copy earlier. In all other respects the temporary key generation protocol is the same. After a temporary key is created, the client usually binds it to its principal authorisation key by means of the auth.bindTempAuthKey method, and uses it for all client-server communication until it expires; then a new temporary key is generated. Thus Perfect Forward Secrecy (PFS) in client-server communication is achieved. Read more about PFS »

rubenlagus commented 8 years ago

I thought you meant PFS in secret chats. I didn't implement PFS since it is a complex process and it is not in my needs at the moment, of course, I'm open to a pull request if you want to add support for it.