Universal Script 📌
238.4k Views
375 Executions

Script Verified BetterKeySystem

Universal Script 📌
vxsty
vxsty
Verified Badge
Verified User
Hall of Fame10M views
3 years ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

Join https://discord.gg/gYhqMRBeZV This script helps you protect your key system from being easily bypassed with a few hooks. What this does: Takes a raw key (as input) and hashes it. function checkKey: Checks if a hashed version of the key is equal to the hashed target key (The key you're using for your key system) FAQ: How does this prevent hooks? It doesnt. It just makes your keys nearly impossible to get without doing whatever key system you're using, for example linkvertise. Is this secure? Yes! I'm updating this whenever i find any vulnerability How do i use this? First of all, Please DO NOT USE THIS RAW!! Use this in an obfuscated script, Do not just put the code and expect your key system to be safe!! If it is raw it can still be hooked. There are many methods to bypass key systems that I will not leak for privacy reasons. Okay, but HOW DO I ACTUALLY USE THIS?? First of all, the easiest step: Copy the code and paste it into your script. Change the 'rawKey' variable to whatever your key is. Second step: Do NOT use the raw checkKey function as it can be hooked and EASILY bypassed. Copy the code from inside it and put it into where ever you're using it. For example: KeyTextBox.FocusLost:Connect(function() if _LOCALCRYPT.hash('_SIGNED'..key)==updatedKey then print("Oh nice you got the key correct") else print("Key is incorrect.") end end) v1.0.1: Added basic Caesar Cipher encryption

Updates

  1. Script edited: Update script

  2. Script edited: Update script

  3. Script edited: Update script

View Raw
-- Below is a simple hashing system to prevent your key system from being easily bypassed.
-- Join https://discord.gg/gYhqMRBeZV
local rawKey = '1234'
local updatedKey;
local _LOCALCRYPT = {}
local bit = table.clone(bit32)

-- Caesar Cipher.
function _LOCALCRYPT.encrypt(plaintext, shift)
    local encryptedText = ""
    if type(shift)=='string' then shift = #shift end
    for i = 1, #plaintext do
        local char = plaintext:sub(i, i)
        if char >= 'A' and char <= 'Z' then
            local encryptedChar = string.char((string.byte(char) - string.byte('A') + shift) % 26 + string.byte('A'))
            encryptedText = encryptedText .. encryptedChar
        elseif char >= 'a' and char <= 'z' then
            local encryptedChar = string.char((string.byte(char) - string.byte('a') + shift) % 26 + string.byte('a'))
            encryptedText = encryptedText .. encryptedChar
        else
            encryptedText = encryptedText .. char
        end
    end
    return encryptedText
end
_LOCALCRYPT.decrypt = _LOCALCRYPT.encrypt

local function str2hexa(a)
    return string.gsub(
        a,
        ".",
        function(b)
            return string.format("%02x", string.byte(b))
        end
    )
end
local function num2s(c, d)
    local a = ""
    for e = 1, d do
        local f = c % 256


Comments

5
Log in to join the conversation. Login
ragdoller2000's profile picture
ragdoller20002 years ago(edited)

@YTeber112 lol

1
YTeber112's profile picture
YTeber1122 years ago(edited)

better key system its babavabava

1
The_script_user's profile picture
The_script_user3 years ago(edited)

Oh ok

1
The_script_user's profile picture
The_script_user3 years ago(edited)

Why do we need an betterkeysystem for what?

1
vxsty's profile picture
vxstyVerified
Verified Badge
Verified User
Hall of FameUploader3 years ago(edited)

@yoan_hristov So your key system does not get bypassed with 3 hooks.

-1