DevToys icon indicating copy to clipboard operation
DevToys copied to clipboard

Can hash function support base64-url-encoding?

Open innocentliny opened this issue 3 years ago • 4 comments

What's the Problem?

Currently, the hash function only support two output format, one is hex string, another is base64 string. I need to get base64-url-encoded format to use with HTTP URL.

Solution/Idea

I hope the output format can add base64-url-encoding.

Alternatives

Manual or run another tool to make base64-encoded string URL-safe.

Priorities

Capability Priority
This proposal will allow developers to accomplish W Must

DevToys Version

Version 1.0.3.0 | X64 | RELEASE | 7c7c02a | 7c7c02a

Comments

No response

innocentliny avatar Feb 22 '22 01:02 innocentliny

We are currently discussing changes to the number base converter tool in #384 that would allow you to convert the hash output from hex to base64 using that tool. 😊

jwfxpr avatar Feb 22 '22 19:02 jwfxpr

@jwfxpr I am not sure if that's correct... That tool will allow you to convert numbers, but not any hex data.

youkai95 avatar Feb 23 '22 13:02 youkai95

@youkai95 all data is a number, if you allow numbers to be big enough. 😊

jwfxpr avatar Feb 23 '22 15:02 jwfxpr

@jwfxpr I agree, but the tool doesnt support that feature and I am not sure if it could due to everything implied on converting through different bases... I see this more as an encoder/decoder tool

youkai95 avatar Feb 23 '22 22:02 youkai95