/magstudentportal/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/magstudentportal/trunk

« back to all changes in this revision

Viewing changes to src/main/java/common/Utils.java

  • Committer: Gustav Hartvigsson
  • Date: 2017-08-24 12:54:32 UTC
  • mto: (15.1.9 magstudentportal-more-db)
  • mto: This revision was merged to the branch mainline in revision 17.
  • Revision ID: gustav.hartvigsson@gmail.com-20170824125432-97lqtbfdytmbqlij
* Started work on the design
* finished the pseudo-dynamic password generator.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
  static public String
16
16
  real_hash_func (String t, String s) {
17
17
    int a = t.getBytes()[0];
18
 
    
19
18
    int b = t.getBytes()[a%t.length()];
20
19
    
21
 
    
22
 
    
23
 
    
24
 
    return null;
 
20
    StringBuilder sb = new StringBuilder ();
 
21
    sb.append (t).insert (b, s);
 
22
    
 
23
    return sb.toString();
25
24
  }
26
25
  
27
26
  /**