Back to project page KnowledgeBase.
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.
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")); } }