1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

SimpleAuth Importer

Discussion in 'Requests' started by Hipster, May 3, 2017.

  1. Hipster

    Hipster Zombie

    Messages:
    214
    Can someone who's good with databases make a plugin which imports databases from other auth plugins like hereauth and serverauth to SimpleAuth, so its easier to change between auth plugins and we dont have to delete databases. for eg. HereAuth JSON to SimpleAuth YAML?
     
    Last edited: May 3, 2017
  2. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    Note that you'll need an extensively modified version of SimpleAuth to successfully load passwords from ServerAuth. So in simple words, an importer doesn't really work.
     
  3. Hipster

    Hipster Zombie

    Messages:
    214
    Atleast from HereAuth then?
     
  4. Hipster

    Hipster Zombie

    Messages:
    214
    Anyone know how? please help! If only PEMapModder was here, hes so good with databases!
     
  5. Bamuel

    Bamuel Silverfish

    Messages:
    16
    GitHub:
    bamuel
    if you give me a file that contains 1 from HereAuth and 1 from SimpleAuth, assuming they use the same hashing, I can make a script that converts the files.

    but they dont use the same hashing styles
    https://github.com/PEMapModder/Here...6e603b7838a1ac/src/HereAuth/HereAuth.php#L408
    https://github.com/PocketMine/Simpl...0b961aefb5/src/SimpleAuth/SimpleAuth.php#L452

    So the only way is to detect users from both files and check if its a HereAuth /SimpleAuth config
     
  6. Hipster

    Hipster Zombie

    Messages:
    214
    So u want a file from each plugin?
     
  7. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    Actually, they're the same. You only do a bin2hex/hex2bin to interconvert them.
     
  8. Bamuel

    Bamuel Silverfish

    Messages:
    16
    GitHub:
    bamuel
    then it makes things easy. I assume hes ban, so if he still wants me to create the script let him email me: [email protected]
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.