Skip to content
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

Tokens do not work like that #1

Open
ddjerqq opened this issue Sep 8, 2022 · 0 comments
Open

Tokens do not work like that #1

ddjerqq opened this issue Sep 8, 2022 · 0 comments

Comments

@ddjerqq
Copy link

ddjerqq commented Sep 8, 2022

you should do some research to make this token generator at least a little accurate.
the first part of the tokens are base64 encoded user ids. so if you want to generate tokens, you should first know how discord generates their IDs. you can see what a snowflake is and how it is generated: here
the second part is the token's timestamp also base64 encoded. note: this is the token's generation timestamp, so it will change when the user changes their password.
the third part is practically random. it is some kind of HMAC hash, maybe of the user's password, some discord hash and so on.
code examples: token generation; id generation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant