1. These forums are still being retired! Please use GitHub discussions or Discord. You cannot create new threads or new accounts now. If you need to contact some user of the forums, you should do it sooner, rather than later. This notice was last updated on May 30th, 2021.

[Plugin] Password Check

Discussion in 'Plugin Suggestions' started by hiarni, Apr 13, 2015.

  1. hiarni

    Plugin Developer

    Joined:
    Mar 14, 2014
    Messages:
    127
    It would be a very nice feature for Staff (e.g. Admin) members if they could check the current password from users
    they forgot theyr own password to /login...

    As example:
    /pwc <player>
    gives out the currently used password of the choosen player account.

    Anyone able to realize it? (kappa)

    Greetings
    Hiarni
     
  2. Olink

    Olink Admin note: Actually a really nice person now

    Joined:
    Jul 21, 2011
    Messages:
    1,397
    No, because that would imply we store your password somewhere.
     
  3. hiarni

    Plugin Developer

    Joined:
    Mar 14, 2014
    Messages:
    127
    isn't it stored as hash? Shouldn't it possible to realize this with some decryption methods they are built in in the given/wanted plugin?
    Or does such a plugin violating the tShock guidelines if it contains such a method?
     
    #3 hiarni, Apr 13, 2015
    Last edited: Apr 13, 2015
  4. Olink

    Olink Admin note: Actually a really nice person now

    Joined:
    Jul 21, 2011
    Messages:
    1,397
    No, you cant just reverse a crypto algo, otherwise people would just store passwords as plain text.
     
    • Agree Agree x 1
  5. Olink

    Olink Admin note: Actually a really nice person now

    Joined:
    Jul 21, 2011
    Messages:
    1,397
    • Informative Informative x 1
  6. Patrikk

    TShock Mod TShock Contributor Plugin Developer

    Joined:
    May 25, 2012
    Messages:
    104
    Yeah, sorry m8. what Olink said:
    "No, because that would imply we store your password somewhere."
     
  7. nicatronTg

    nicatronTg Shank / hakusaro
    TShock Founder TShock Admin

    Joined:
    Jul 21, 2011
    Messages:
    727
    No. Neither the current hashing mechanism allows this, nor does the new version (coming in the next release, BCrypt). These are one-way hashing functions.
     
    • Dumb Dumb x 1