Android Open Source - KnowledgeBase Encryption Test






From Project

Back to project page KnowledgeBase.

License

The source code is released under:

MIT License

If you think the Android project KnowledgeBase listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.martin.knowledgebase;
/*from   ww  w  .  j  a v  a2  s . c o m*/
import android.test.AndroidTestCase;

public class EncryptionTest extends AndroidTestCase {

    public void testStringEncryptDecrypt() throws Exception {
        Util.stringEncrypt(getContext(), "asd", "pwcheck", "This should equal itself.");
        assertEquals("Does not equal itself (-_-)", "This should equal itself.", Util.stringDecrypt(getContext(), "asd", "pwcheck"));
    }
}




Java Source Code List

com.martin.knowledgebase.ConversionTest.java
com.martin.knowledgebase.EditActivity.java
com.martin.knowledgebase.EncryptionTest.java
com.martin.knowledgebase.EntryTest.java
com.martin.knowledgebase.Entry.java
com.martin.knowledgebase.LoginActivity.java
com.martin.knowledgebase.MainActivity.java
com.martin.knowledgebase.PlainStorage.java
com.martin.knowledgebase.Snackbar.java
com.martin.knowledgebase.Util.java
com.tozny.crypto.android.AesCbcWithIntegrity.java