Untitled

mail@pastecode.io avatarunknown
plain_text
2 months ago
3.0 kB
2
Indexable
Never
function Decryptify(code) { // very basic and easy to decrypt encryption for NO REASON, I don't want to use hashes and stuff (BORING!)
    let mode;
    let mode2;
    let mode3;
    code = code.split("\n").splice(12,A.length).toString()
    if (code[0] == "A")
        mode = 1
    else if (code[0] == "B")
        mode = -1
    else
        mode = 100

    if (code[1] == "A")
        mode2 = -1
    else if (code[1] == "B")
        mode2 = 1
    else
        mode2 = 100

    mode3 = parseInt(code[2])*2
    code = code.substring(3,code.length)
    let NOE = false
    for (let index = 0; index < code.length; index++) {
        if (code[index] != "\n")
            if (NOE) {
                code = ReplaceAt(code,index,String.fromCharCode((code[index].charCodeAt(0) - mode2+mode3)/2));
                NOE = false
            }
            else {
                code = ReplaceAt(code,index,String.fromCharCode((code[index].charCodeAt(0) - mode3-mode)/2));
                NOE = true
            }
    }
    code = code.replaceAll("\n",",")
    return code
}
function Encryptify(code) { // very basic and easy to decrypt encryption for NO REASON, I don't want to use hashes and stuff (BORING!)
    let mode = randomize(0,2)*2
    let mode2 = randomize(0,2)*2
    let mode3 = (randomize(0,5)+1)
    let NOE = false
    for (let index = 0; index < code.length; index++) {
        if (code[index] != ",")
            if (NOE) {
                code = ReplaceAt(code,index,String.fromCharCode(code[index].charCodeAt(0) * 2 + mode2+mode3*2-1));
                NOE = false
            }
            else {
                code = ReplaceAt(code,index,String.fromCharCode(code[index].charCodeAt(0) * 2 + mode3*2-mode-1));
                NOE = true
            }
    }
    code = code.replaceAll(",","\n")
    if (mode)
        mode = "A"
    else
        mode = "B"
    if (mode2)
        mode2 = "B"
    else
        mode2 = "A"
    bin_thinks_the_variables_I_define_look_like_this_one_wth_he_made_me_cwy = `
    ########################################################################
    ###                                                                  ###
    ###       A Saved Project From Datapack Maker In MCDev Studio        ###
    ###                                                                  ###
    ###  Don't modify anything in this file don't even leave a comment!  ###
    ###    Doing anything in this file can cause the project to break    ###
    ###       Forever and you won't be able to restore it anymore!       ###
    ###        So be careful and have fun with datapack maker! ;D        ###
    ###                                                                  ###
    ########################################################################\n\n`
    code = bin_thinks_the_variables_I_define_look_like_this_one_wth_he_made_me_cwy + mode + mode2 + mode3 + code
    return code
}