Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

SimpleAuth Hash method?

Comments in 'Plugin Development' started by Legoboy0215, Aug 11, 2015.

Thread Status:
Not open for further replies.
  1. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,747
    Minecraft User:
    Legoboy0215
    How does SimpleAuth Hash its passwords? I am working on a MySQL plugin and I am not able to access github. Thanks!
  2. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,325
    Plugins:
    11
    Minecraft User:
    PEMapModder
    PHP:
    private function hash($salt$password){
    return 
    bin2hex(hash("sha512"$password $salttrue) ^ hash("whirlpool"$salt $passwordtrue));
    }
  3. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,747
    Minecraft User:
    Legoboy0215
    Omg. How would I implent it in my plugin? seems ver complicated lol.
  4. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,325
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Simply call that function.
    TigerHix, CrazedMiner and Legoboy0215 like this.
Thread Status:
Not open for further replies.

Share This Page

Advertisement