-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sequence of file link Robot Generate is just numbers #4
Comments
If I have bot username, I will generate all links like and see the files users forwarded to bot but this way, Random users can only access Files, if they have exact word in link |
@SpEcHiDe time to use uuid :-) |
Uhm, it makes sense |
I think, need a database if this needs to be implemented. |
No, it’s not needed, you can use some algorithms |
Wait, it’s not possibile with an algorithm without using a db. Sorry I was wrong. I’m thinking about it, let’s see if I find something |
it is not impossible, ideally you can use any algorithm which supports 2 way hashing (and returns a hash less than 64 characters), but I think not using a DB is over-engineering the problem..😅 |
Yeah but:
Also, if we’ll use a 2 way hashing, I’d like to use my own base26 encoding, that encodes every int in a string composed by only a-z lowercase letters |
|
Please generate a random word ( 10 or 15 Characters For Example)
after each message robot receive
and send it to linked channel of Robot, after message itself
say "ra2nd1o5mw3ord"
so the link the bot generate will be ( id number of message in Linked channel of Bot)
https://t.me/FilesBot?start=ra2nd1o5mw3ord_id
https://t.me/FilesBot?start=ra2nd1o5mw3ord_10
instead of
https://t.me/FilesBot?start=view_10_tg
for 10th message in the Linked Channel of Robot
so that random users can't find bot files
Thanks
The text was updated successfully, but these errors were encountered: