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

feat(bkpaas_auth): 不再对用户 ID 加密 #201

Closed

Conversation

jiayuan929
Copy link
Collaborator

No description provided.

@jiayuan929 jiayuan929 requested review from piglei and narasux December 12, 2024 08:38
# Handle encrypted user ID
_provider_type, encrypted_username = user_id[:2], user_id[2:]
decoded = ARC4(ensure_binary(self.secret_key)).decrypt(binascii.unhexlify(encrypted_username))
decoded_username = ensure_text(decoded)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个需求的背景是?

@jiayuan929 jiayuan929 closed this Dec 12, 2024
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

Successfully merging this pull request may close these issues.

2 participants