![]() |
Encode/Decode
I'm developing an advanced rights system to help kill abuse on my server.
Using base64encode("bscharff"), the encoding translates to 'YnNjaGFyZmY=' (notice it ends with a '=') As everyone knows (hopefully), to assign variables to something, you use an equals sign. Therefor, I cannot save with base64 encoding. Is there any other encoding available in GS2 other than base64? |
Quote:
PHP Code:
|
Quote:
|
Quote:
Yea... Don't encode the account names... First off, they hide who has what rights -- And in terms of manageability, it's a useless overhead. You're much more likely to leave an ex-staff in the rights if you don't see his account in the first place. ( thus, increasing abuse! ) I don't see how it'll help you in any way by doing so: Anyone can easily find their account info with encode, and it just delays them... About 3 seconds. Otherwise, it's quite a bad habit. I would just log all actions, and if one isn't justified, than there you go! You have a log about it. ( and you could take counter-measures. ) |
Encoding is honestly only good for passwords and the like. And I wouldn't use base64encode by itself for anything that you want secure, since there is a base64decode function, rendering it completely useless by itself, honestly.
|
You don't need to encode, why not use an md5 hash or something.
|
|
I asked for an encryption method that could pass a key as a parameter but it never got anywhere. Ultimately, the idea was put forward that a key could be how many times you keep re-encoding it in a loop.
If someone knows how to get that variable, using the encode function won't do much at all :rolleyes: . In the end, It would be better to just stop scripting rights systems for time-wasting and unnecessary staff systems. |
Quote:
|
Quote:
The Variable is rights_bscharff and It would translate to rights_(I forget)= and a variable cannot have '=' in it |
"time-wasting"..."unnecessary staff systems."
No. It Is Completely Necessary. Don't Reply unless you intend to help. M'Kay. If I'm Making My Own Encode/Decode Script, How Would I basically tokenize each character on it's own? (without manually adding spaces) |
Why do you double post all the time? Just use MD5 hashes ;o
|
On behalf of this thread, I wrote an encryption/decryption example. It is simple and by no means industry standard, and it will almost certainly produce characters that are not allowed in variable names, so think about how you are going to use it. I guess it could be adapted to replace such characters with more variable-name friendly ones but I didn't have time to think about that.
Take a look at http://skyld.vip.graal.net/wikka.php...mpleEncryption. It was a quickly written script, and probably can be made more efficient, but I hope it demonstrates the idea. |
Thanks Skyld!
|
Actually, staff systems usually aren't really that important. :p Or necessary at that...
|
Uh, I've never heard of anyone (Staff with the weapon) actually hacking rights out of a staff weapon, its not really worth the effort considering you'd just get fired.
If you're wasting this much time working on some super staff script and not on developing the server then you're a bad staff member. |
Quote:
Quote:
|
Quote:
Edit: Here's a rephrasing. Why does it matter? He's not going to stop posting just because you don't like the necessity of his post, so it isn't really necessary to bring up the necessity of his posting. |
Quote:
|
Quote:
|
Quote:
|
Second at Tigairius (& Inverness)
|
Quote:
|
Quote:
|
Like if someone agrees to something they say "second"
I'm saying I Agree With Tigairius & Inverness :P |
Quote:
I'm confused now :confused: |
Quote:
I only encrypt things that are being used in real-time, so to say. For example, encrypting the ammo you have with base64encode x ammount of times, then decoding it x ammount of times. This simply makes it harder to use CheatEngine, etc |
| All times are GMT +2. The time now is 08:17 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.