Base64 encryption and decryption error when special characters
Opened this issue · 1 comments
MyPuppet commented
When I use encode to encrypt "Ö", the result is "T8yI", and when I use decode to decrypt, the value becomes "Ö".
We can't see the problem with our eyes, I'll use an example to prove this wrong.
When using base64encode, the encoded result is "1g==", and the decrypted result is also correct, you can use this as a reference.
Thank you for your efforts, overall this is a great project.
cage1016 commented
20:44:13 workflow.go:328: ---------- DevToys/1.4.0 (AwGo/0.27.1) -----------
20:44:13 encode.go:30: Ö
20:44:13 encode.go:35: not same with clipboard
20:44:13 encode.go:36: [79 204 136]
20:44:13 encode.go:37: [195 150]
20:44:13 update.go:210: 1h21m16.181449s since last check for update
20:44:13 update.go:198: latest version: 1.4.0
20:44:13 feedback.go:509: Sent 3 result(s) to Alfred
20:44:13 workflow.go:405: ------------------ 14.259089ms -------------------
as above encode.go:36 / encode.go:37 show that manual input Ö
is different byte array with directly read from clipboard. root cause is Ö
is special characters. I might NOT have time to handle special characters recently.