-
Notifications
You must be signed in to change notification settings - Fork 7
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
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
The text was updated successfully, but these errors were encountered: