generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Making a code secure.

Previous Thread :: Next Thread 
IoIiderp is not online. IoIiderp
Joined: 05 Feb 2012
Total Posts: 8613
03 Jun 2015 01:07 PM
So for example, if I wanted to make a log in, then how would I do this:
It generates something completely random, adds the code so you can't accidently get it right.
And make sure, each time you "encrypt" it, it gives the exact same result.

But there may be no way to "decrypt" it?
Report Abuse
epicbreaker is not online. epicbreaker
Joined: 23 Apr 2011
Total Posts: 2791
03 Jun 2015 01:14 PM
http://www.cse.yorku.ca/~oz/hash.html
Report Abuse
Alyte is not online. Alyte
Joined: 24 Oct 2011
Total Posts: 10090
03 Jun 2015 01:16 PM
y would u do this on roblox. theres no point. but yes in the real world u would use a hash
Report Abuse
RegularTetragon is not online. RegularTetragon
Joined: 10 Oct 2009
Total Posts: 3085
03 Jun 2015 01:17 PM
Take a look at the AES standard
Would it be easy to implement? No.
Would it be worth it? Probably not.
Would it be virtually impossible to crack? Yes.
Report Abuse
IoIiderp is not online. IoIiderp
Joined: 05 Feb 2012
Total Posts: 8613
03 Jun 2015 01:17 PM
Thanks
Report Abuse
ohno1112 is not online. ohno1112
Joined: 23 Mar 2013
Total Posts: 833
03 Jun 2015 01:22 PM
i can help you as i've done this before, using Binary manipulations with ASCII values. please PM me if you want me to do this for you and get more INFO, as roblox apparently doesn't let me post the exaplanation of how it works. Skype would be preferred.
Report Abuse
IoIiderp is not online. IoIiderp
Joined: 05 Feb 2012
Total Posts: 8613
03 Jun 2015 01:25 PM
I would like to make a kind of profile thing on roblox but I don't want to have people's code.

1) Out of respect for the player.
2) Making the player feel secure.
3) Making my system unhackable.
4) ROBLOX rules, maybe? (There is not really a rule)
Report Abuse
epicbreaker is not online. epicbreaker
Joined: 23 Apr 2011
Total Posts: 2791
03 Jun 2015 01:27 PM
Why not use an external database such as MySQL?
You can md5 (or use more recent methods) for the pass. It shouldn't be visible easily, providing you prevent MySQL injection.
Report Abuse
IoIiderp is not online. IoIiderp
Joined: 05 Feb 2012
Total Posts: 8613
03 Jun 2015 01:29 PM
I am horrible at web developing.
Also md5 is crackable.
Report Abuse
epicbreaker is not online. epicbreaker
Joined: 23 Apr 2011
Total Posts: 2791
03 Jun 2015 01:30 PM
^I'm aware that MD5 is not recommended. You can however try Bcrypt.
Report Abuse
epicbreaker is not online. epicbreaker
Joined: 23 Apr 2011
Total Posts: 2791
03 Jun 2015 01:31 PM
Also, ALL hashes are crackable. There is no pure safe solution.. If it can be encrypted, it can also be cracked.
Report Abuse
IoIiderp is not online. IoIiderp
Joined: 05 Feb 2012
Total Posts: 8613
03 Jun 2015 02:33 PM
Thanks everyone, by the way here is my code.


function encrypt(code)
local endresult = ""

local function store(...)
return{...}
end
local result = store(string.byte(code,1,#code))


local num = 0
for i,v in pairs(result) do
num = num + tonumber(v)
end
math.randomseed(num)


local corrupt = ""
for i = 1,#code do
if math.floor(i/2) == i/2 then
corrupt = corrupt .. string.sub(code,i,i)
end
end


local secres = store(string.byte(corrupt,1,#corrupt))
for i,v in pairs(secres) do
endresult = endresult .. tostring(v) .. math.floor(math.random() * 1000)
end

return endresult
end
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
03 Jun 2015 02:42 PM
There is no such thing as encrypting code since you have to eventually input the rawcode since the compiler doesn't compile 'encrypted code'.
Report Abuse
IoIiderp is not online. IoIiderp
Joined: 05 Feb 2012
Total Posts: 8613
03 Jun 2015 02:44 PM
What do you mean?
Its gonna ask once for the original code, and store the encrypted version in the data store, now on logging in it will pass the original code.

And that code will be encrypted and then the 2 encrypted codes will be compared if they match.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
03 Jun 2015 02:46 PM
Oh, I thought you just wanted to do that so no one can steal your local scripts or whatever.
Report Abuse
IoIiderp is not online. IoIiderp
Joined: 05 Feb 2012
Total Posts: 8613
03 Jun 2015 02:49 PM
there will be none, server side scripts only
and there will be a 1 second delay, else it will completely be ignored
Report Abuse
IoIiderp is not online. IoIiderp
Joined: 05 Feb 2012
Total Posts: 8613
03 Jun 2015 02:58 PM
Idea:
- Everything server side.
- Undecryptable string
Its undecryptable since its not unique, but the chances that logging in with another code are so low that its about impossible, and won't be a problem.

But the meaning that cracking it will give a lot of diffrent results wich makes it impossible to get a 100% arrucate code.
Report Abuse
Mechords is not online. Mechords
Joined: 25 Dec 2014
Total Posts: 714
03 Jun 2015 03:01 PM
jesus man are you programming a bomb detonator from roblox or something lol?
Report Abuse
IoIiderp is not online. IoIiderp
Joined: 05 Feb 2012
Total Posts: 8613
03 Jun 2015 03:03 PM
Maybe a new robux API?
It was an idea I had...
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image