MCPcopy Index your code
hub / github.com/LasCC/HackTools / hex2a

Function hex2a

src/components/encoding/DataEncoding.tsx:23–32  ·  view source on GitHub ↗
( hex: string )

Source from the content-addressed store, hash-verified

21 return result;
22}
23function hex2a ( hex: string ) {
24 var str: string = '';
25 for ( var i: number = 0; i < hex.length; i += 2 ) {
26 var code: number = parseInt( hex.substr( i, 2 ), 16 );
27 if ( !isNaN( code ) ) {
28 str += String.fromCharCode( code );
29 }
30 }
31 return str;
32}
33
34const Base64Encode = () => {
35 const [ input, setInput ] = useState( '' );

Callers 1

handleClickFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected