Jump to content
Cicada

Putting password on script

Recommended Posts

Posted (edited)

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

Edited by Cicada

Share this post


Link to post
Share on other sites

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? 

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

nvm. 

He would figure it out, i believe in someday.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...