CryptoNOTE Open Source Project
AES encoding
The project of a simple notepad with AES encryption of entries. For data that not everyone needs to read.
Earlier we published a complete Java project with a dynamic password that does not need to be remembered. You just know how to form it in order to enter the program. If the answer is entered correctly, then the data will be decoded.
Now consider the class for AES data encryption
private static byte[] getRawKey(byte[] seed) throws Exception {
KeyGenerator kgen = KeyGenerator.getInstance("AES");
SecureRandom sr = SecureRandom.getInstance("SHA1PRNG","Crypto");
sr.setSeed(seed);
kgen.init(128, sr); // 192 and 256 bits may not be available
SecretKey skey = kgen.generateKey();
byte[] raw = skey.getEncoded();
return raw;
}
You can choose stronger 256-bit encryption yourself
You can download the complete application project with comments. Upload to Android Studio and compile into a working application.
GNU GPL
Android Studio Java
Source Code - CryptoNOTE_AES.ZIP https://drive.google.com/file/d/1QhW9SRS6-fWGyV6hAAifxlUFe8PngCn9/view?usp=sharing
Full Java Project
Comments
Post a Comment