Jump to content
  • 0

Putting password on script


Cicada

Question

Posted

print('Script Encryptor Made By Top GEO')
function encodes(key,code)
   return (code:gsub('..', function (h) return string.char((tonumber(h,16)+256-13 - key + 999999*256)%256) end))
end

local v_value=gg.prompt({'Enter password:'},{[2201]=2201},{[2201]='number'})


if v_value == nil then
    gg.toast ('Script Canceled')
    os.exit()
    end

 

 

Have that at top of script but any password is still opening the script

6 answers to this question

Recommended Posts

Posted
2 hours ago, Cicada said:

print('Script Encryptor Made By Top GEO')
function encodes(key,code)
   return (code:gsub('..', function (h) return string.char((tonumber(h,16)+256-13 - key + 999999*256)%256) end))
end

local v_value=gg.prompt({'Enter password:'},{[2201]=2201},{[2201]='number'})


if v_value == nil then
    gg.toast ('Script Canceled')
    os.exit()
    end

 

 

Have that at top of script but any password is still opening the script

Lol . Its bcs main part of script is splited . Where is another part? 

Posted
13 minutes ago, Cicada said:

@TopGEOYT

 

Reached max posts so can't pm you again

 

You said for me to run your script so what do I do after that? Do I then run my script or what? Sorry just not being explained very well 

Ok . U are begginer so I try to explain easily . Just add this function in the starting of ur script :

Password = '1234'
PS = gg.prompt({'🔒 Input password: '},{[1]=''},{[1]='number'})
if not PS then os.exit() 
end 
if PS[1] == Password then 
gg.toast('✔️ Password correct!')
else 
gg.alert('❌ Wrong Password ❕') os.exit() end
--write bellow your codes. if pass was true then script will start

Posted
2 hours ago, TopGEOYT said:

Ok . U are begginer so I try to explain easily . Just add this function in the starting of ur script :

Password = '1234'
PS = gg.prompt({'🔒 Input password: '},{[1]=''},{[1]='number'})
if not PS then os.exit() 
end 
if PS[1] == Password then 
gg.toast('✔️ Password correct!')
else 
gg.alert('❌ Wrong Password ❕') os.exit() end
--write bellow your codes. if pass was true then script will start

If you're smart enough you should encrypt it with password instand of this code

100% leak.

Posted
6 hours ago, -Sam- said:

If you're smart enough you should encrypt it with password instand of this code

100% leak.

I told him it and also I sent him compiler in private messages but he didn't understand what was this

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.