Skip to content

Commit

Permalink
Readme update.
Browse files Browse the repository at this point in the history
  • Loading branch information
Micheal Swiggs committed Jul 17, 2013
1 parent 0239c40 commit c8993b7
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -4,6 +4,7 @@ Jumblar is an attempt to use map locations as passwords. All of our accounts req

Jumblar hopes to provide a pathway for increased user security. For most it is easy to remember a secret location. It could be anywhere in the world. But it is practically impossible for others to guess. By using this property of secret locations secure passwords can be generated.

Download the beta <a href="https://github.com/micheal-swiggs/jumblar-desktop/releases">Desktop App</a>.
Try the beta <a href="https://play.google.com/store/apps/details?id=beta.com.jumblar.android.app">Android App</a>.
Discuss <a href="https://www.facebook.com/Jumblar">Jumblar on facebook</a>.

Expand Down
Expand Up @@ -68,7 +68,7 @@ public String randString (int length){
buf = digester.digest (scryptHash);
String b = utf8String(scryptHash);
result += filterAlphaNumeric (b);
}
}
Shuffler s = new Shuffler (scryptHash);
return s.shuffleString (result.substring(0, length));
}
Expand Down
12 changes: 12 additions & 0 deletions src/test/java/com/jumblar/core/PhraseGeneratorTest.java
Expand Up @@ -18,6 +18,14 @@ public static Test suite(){
return new TestSuite (PhraseGeneratorTest.class);
}

public void testPhrases() throws Exception{
byte[] baseBytes = new byte[32];
PhraseGenerator pg = new PhraseGenerator (baseBytes);
for (int i=0;i<10;i++){
println(pg.randString(""+i, 20));
}
}

public void testDifferentPhrases() throws Exception{
byte[] baseBytes = new byte[32];
PhraseGenerator pg = new PhraseGenerator (baseBytes);
Expand All @@ -37,4 +45,8 @@ public void testDifferentPhrases() throws Exception{
assertFalse(pwords.contains(pw));
pwords.add(pw);
}

public void println (Object ob){
System.out.println (""+ob);
}
}

0 comments on commit c8993b7

Please sign in to comment.