Class LoginCryptoLegacy
java.lang.Object
client.LoginCryptoLegacy
Provides cryptographic functions for password hashing.
Legacy purpose as the method done here is insecure by hashing multiple times
and overly complicated. Will go away when/if official oms has no more users
with legacy passhashes.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final booleancheckPassword(String password, String hash) Check a password against a hash.static final StringencodeSHA1(String text) static final StringhashPassword(String password) Hash the password for first time storage.static final booleanisLegacyPassword(String hash)
-
Constructor Details
-
LoginCryptoLegacy
public LoginCryptoLegacy()
-
-
Method Details
-
hashPassword
-
checkPassword
-
isLegacyPassword
-
encodeSHA1
public static final String encodeSHA1(String text) throws NoSuchAlgorithmException, UnsupportedEncodingException
-