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

base62x SIMPLY ADDS an 'x' AT THE AND when encoding strings composed only of numbers or letters #10

Open
Heartbreaker16 opened this issue Jan 27, 2025 · 3 comments

Comments

@Heartbreaker16
Copy link

Which makes it cannot replace base64.

@Heartbreaker16 Heartbreaker16 changed the title For strings composed only of numbers or letters, base62x encoding SIMPLY ADDS an 'x' AT THE AND base62x SIMPLY ADDS an 'x' AT THE AND when encoding strings composed only of numbers or letters Jan 27, 2025
@wadelau
Copy link
Owner

wadelau commented Feb 3, 2025

Could you please give what kind of problem you encountered with Base62x?
and what's your suggestion to modify the method by adding 'x' for alphanumeric string?

@Heartbreaker16
Copy link
Author

Heartbreaker16 commented Feb 3, 2025

Could you please give what kind of problem you encountered with Base62x? and what's your suggestion to modify the method by adding 'x' for alphanumeric string?

某些不方便明码传输和显示的敏感字符串,编码后如果没有改变原字符本身而只是末尾增x,这起不到脱敏作用。
作为应用端开发者我给不了什么建设性的建议,我最多就换个其他的加密方案,甚至是用回base64

@wadelau
Copy link
Owner

wadelau commented Feb 4, 2025

Base62x and/or Base64 aims to ENCODE something not to ENCRYPT something.
To hide something or keep secret from public, what you need is some kind of encryption scheme, not any kind of encoding method.

We all are occasionally confused by these two sets of similar words: Encode and Encrypt.
Suppose diving into encryption, more details could be read from https://ufqi.com/blog/encryption-and-message-digest/ .

Image

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

2 participants