Skip to content

Commit

Permalink
Made it clear within the exception when unencrpyted passwords were be…
Browse files Browse the repository at this point in the history
…ing shown.
  • Loading branch information
kevinmcdonagh committed Jul 17, 2011
1 parent 1ce6848 commit 3d64754
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions encryption/src/com/novoda/Encrypt.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ public void onCreate(Bundle savedInstanceState) {
public String getAsHash(String var) {
String passwordHashed;
try {
passwordHashed = crypt(Cipher.ENCRYPT_MODE, SECRET_PASSWORD_TO_ENCRYPT);
passwordHashed = crypt(Cipher.ENCRYPT_MODE, var);
} catch (Exception e) {
Log.e(TAG, "Problem encrypting string" ,e);
passwordHashed = SECRET_PASSWORD_TO_ENCRYPT;
passwordHashed = "you should not see this";
}
return passwordHashed;
}
Expand Down

0 comments on commit 3d64754

Please sign in to comment.