Skip to content

BASE64 line encryption and decryption, UrlEncode encoding decoding, native ascii online conversion tool toolfk online Programmer toolbox

hubs edited this page Jan 7, 2019 · 1 revision

   This paper to recommend [ToolFk] is a programmers often use a free online test kit, ToolFk feature is focused on everyday programmer development tools, without having to install any software, as long as the content execution affixed by a button, able to obtain the contents of the desired results.ToolFk also supports   BarCode Barcode generated online ,  QueryList collector ,  PHP code is run online ,  PHP confusion, encryption, decryption ,  Python code is run online JavaScript online operation ,YAML formatting tools , HTTP simulation query tool HTML online toolbox JavaScript online Toolbox ,CSS online toolbox JSON online toolbox unixtime timestamp conversion Base64 / the URL of / native2ascii conversion CSV conversion kit XML online toolbox the WebSocket online tools Markdown online toolbox Htaccess2nginx conversionHex conversion online online encryption toolkit ,online pseudo-original tools online APK decompile online web screenshot tool online random password generation online generate two-dimensional code qrcode online Crontab Expression Builder ,the online short URL Generator Online calculator tool . And more than 20 daily programmer development tools, can be considered a very comprehensive website programmer's toolbox.

Site name: ToolFk
website links: https://www.toolfk.com/
Tools link: https://www.toolfk.com/tool-encdec-transform

 Teaching Code

This tool [Online BASE64 encryption and decryption, UrlEncode encoding / decoding, native / ascii conversion tool Online]?-Dependent code library

https://github.com/zenorocha/clipboard.js

https://github.com/codemirror/CodeMirror

https://github.com/beatgammit/base64-js

STEP 1

STEP 2

? THE CORE CODE IS AS FOLLOWS

function base64_encode (message) {
    var base = new Base64 ();
    var value = base.encode (message);
    return value;
}
function base64_decode (message) {
    var base = new Base64 ();
    var value = base.decode (message);
    return value;
}
function url_encode (message) {
    var value = encodeURIComponent (message);
    return value;
}
function url_decode (message) {
    var value = decodeURIComponent (message);
    return value;
}
function ascii_unicode (message) {
    var len = message.length;
    var result = '';
    for (var i = 0; i <len; i ++)
        result + = '& #' + message.charCodeAt (i) + ';';
    return result;
}
function unicode_ascii (message) {
    var code = message.match (/ & # (\ d +); / g);
    if (code == null) {
        var msg = "@lang ( 'toolfk.lang_text_valid_txt')";
        layer.msg (msg);
        return msg;
    }
    var result = '';
    for (var i = 0; i <code.length; i ++)
        result + = String.fromCharCode (code [i] .replace (/ [& #;] / g, ''));
    return result;
}
function ascii_native (message) {
    var nativecode = message.split ( "");
    var ascii = "";
    for (var i = 0; i <nativecode.length; i ++) {
        var code = Number (nativecode [i] .charCodeAt (0));
        if (code> 127) {
            var charAscii = code.toString (16);
            charAscii = new String ( "0000") substring (charAscii.length, 4) + charAscii.;
            ascii + = "\\ u" + charAscii;
        } Else {
            ascii + = nativecode [i];
        }
    }
    return ascii;
}
function native_ascii (message) {
    var asciicode = message.split ( "\\ u");
    var nativeValue = asciicode [0];
    for (var i = 1; i <asciicode.length; i ++) {
        var code = asciicode [i];
        nativeValue + = String.fromCharCode (parseInt ( "0x" + code.substring (0, 4)));
        if (code.length> 4) {
            nativeValue + = code.substring (4, code.length);
        }
    }
    return nativeValue;
}

It is worth a try for three reasons:

  1. Integrate various programmers often used in development and testing tools.

  2. Simple and beautiful atmosphere of the site pages

  3. Online support formatting code execution, APK online decompile, online high-strength password generator, two dozen screenshots online web tools service

  4. Also recommend its sister network  www.videofk.com  video download Toolbox 

This link: http://www.hihubs.com/article/370

Clone this wiki locally