I'm trying to write a new method for the code in Wasabi A/B's LoginToken.java class. The class defines an class of type LoginToken and implements a hashCode() method. As of now, the method reads:
@Override
public int hashCode() {
return HashCodeBuilder.reflectionHashCode(this);
}
However, I understand that HashCodeBuilder is not that secure, from the Apache Commons description. The file itself imports import org.apache.commons.lang3.builder.HashCodeBuilder;
. Ideally, I want to do SHA256; I got the idea here What should I change to achieve this?