This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Symmetric and asymmetric encription | |
//http://www.developer.com/ws/android/encrypting-with-android-cryptography-api.html | |
public class SymmetricAlgorithmAES extends Activity { | |
static final String TAG = "SymmetricAlgorithmAES"; | |
@Override | |
public void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Kotlin version of https://dzone.com/articles/get-all-classes-within-package | |
* Mentioned here as well: https://stackoverflow.com/a/520344/798165 | |
*/ | |
object ReflectionUtils { | |
/** | |
* Returns list of classes if interface is located in the same package with implementations | |
*/ | |
@Suppress("UNCHECKED_CAST") |
OlderNewer