Package net.libyaguide.gpay.sdk.crypto
Class HashTokenGenerator
java.lang.Object
net.libyaguide.gpay.sdk.crypto.HashTokenGenerator
Utility class for generating hash tokens and salts for request signing.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgenerateHashToken(String salt, String password) Generates a hash token by concatenating the salt and password.static StringGenerates a random salt encoded in Base64.
-
Constructor Details
-
HashTokenGenerator
public HashTokenGenerator()
-
-
Method Details
-
generateSalt
Generates a random salt encoded in Base64.- Returns:
- The generated salt string.
-
generateHashToken
Generates a hash token by concatenating the salt and password.- Parameters:
salt- The random salt.password- The password.- Returns:
- The generated hash token.
-