Base64 to Hexadecimal in q

Anyone have an implementation of Base64 to Hexadecimal / Byte implemented in q?

Thanks

Have you tried .Q.j10 .Q.x10 ?

.Q.j10 each (10 0N)#raze .Q.x10 each til 10

WBR, Andrey Kozyrev.

???, 2 ??? 2015 ?., 14:21:16 UTC+3 ??? Zak Oudrhiri ???:

Anyone have an implementation of Base64 to Hexadecimal / Byte implemented in q?

Thanks

I’m actually receiving this object as Base64 string from a C# service

Basically how to get “3SAfYJ5JwGCfq6TIqvux5Q==” to “DD201F609E49C0609FABA4C8AAFBB1E5” or 0xdd201f609e49c0609faba4c8aafbb1e5

Cheers

You may use something like

{(neg sum"="=x)_raze 5_'0x0 vs/:64 sv/:(0N 4)#.Q.b6?x}

q){(neg sum"="=x)_raze 5_'0x0 vs/:64 sv/:(0N 4)#.Q.b6?x}“3SAfYJ5JwGCfq6TIqvux5Q==”
0xdd201f609e49c0609faba4c8aafbb1e5

WBR, Andrey Kozyrev.

???, 2 ??? 2015 ?., 16:07:08 UTC+3 ??? Zak Oudrhiri ???:

I’m actually receiving this object as Base64 string from a C# service

Basically how to get “3SAfYJ5JwGCfq6TIqvux5Q==” to “DD201F609E49C0609FABA4C8AAFBB1E5” or 0xdd201f609e49c0609faba4c8aafbb1e5

Cheers

Wow, amazing… Thank you !