package common;

public class
Utils {
  private Utils () {};
  
  /**
   * A hash function that salts the password
   * in a way that is pseudo dynamic.
   * 
   * @param t the text to salt
   * @param s the salt
   * @return
   */
  static public String
  real_hash_func (String t, String s) {
    int a = t.getBytes()[0];
    @SuppressWarnings("unused")
    int b = t.getBytes()[a%t.length()];
    
    /* Rotate the string as here:
     *  
     */
    
    
    return null;
  }
  
  /**
   * Hash a text with a salt.
   * 
   * @param t
   * @return
   */
  static public String
  hash_func (String t) {
    return real_hash_func(t, common.Config.PW_SALT);
  }
  
  
}
