Jump to content
View in the app

A better way to browse. Learn more.

RuneSuite RSPS Development

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted
comment_63120

Hey guys,

Today I'm making a guide on how you can encrypt your player(s) passwords!

I made this initially for PlatinumPS (Now leaked)

Note: We will be saving the encryption key as plaintext in the server files for this tutorial.

This is obviously a terrible idea for most applications, however you can adapt the code to store the key somewhere else if you want to. 

The purpose of doing this is to stop people who gain unauthorised access to your player files from using the passwords nefariously.

First step - Creating Encryptor.java in your server files.

I have left an example key as you'll see. Change this!


Encryptor.java

This is the hidden content, please

 

Next - Using the methods

So, we want to encrypt a players password, and then upon login, we also want to decrypt it.

Go ahead and open PlayerLoading.java and PlayerSaving.java.

In your PlayerSaving file, replace your previous password line with:

PlayerSaving.java

This is the hidden content, please


Now, in your player loading file, replace your previous password loading with this;
(If your code didn't have the bottom part, just take the top parts that actually handle the encryption)

PlayerLoading.java

This is the hidden content, please

The code above allows you to implement this onto a server without deleting all of the old accounts that don't have an encrypted password.

Please note - You can NEVER change the encryption key without decrypting all passwords first!

You could edit the method to decrypt with the current, and then re-encrypt with a new key if you really wanted to.

If anyone finds out your key, you're a moron. 

Be safe, respect your players privacy.

Before:

image

After:

image

 

I also made a command that I recommend only for server owners. 

This allows you to recover a decrypted password from a player, even when offline.

This is the hidden content, please

 

  • 3 months later...
  • 3 months later...
  • 11 months later...
  • 1 month later...
  • 1 month later...

Create an account or sign in to comment

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.