How to build AES Crypt for Android shared Library ( JNI )

Discussion related to AES Crypt, the file encryption software for Windows, Linux, Mac, and Java.
User avatar
paulej
Posts: 571
Joined: Sun Aug 23, 2009 7:32 pm
Location: Research Triangle Park, NC, USA
Contact:

Re: How to build AES Crypt for Android shared Library ( JNI )

Post by paulej »

seoguru109 wrote: Tue Nov 02, 2021 7:06 am If the conversion is not needed, you can just remove the call to iconv(). If conversion is required, you only need to know the input character encoding used. The conversion process is definitely something that you can handle if you are building this type of application with the help of the internet


Thanks
iconv() (or something equivalent) is needed since the input characters for the password must be converted to UTF-16LE.
User avatar
paulej
Posts: 571
Joined: Sun Aug 23, 2009 7:32 pm
Location: Research Triangle Park, NC, USA
Contact:

Re: How to build AES Crypt for Android shared Library ( JNI )

Post by paulej »

sstevemmitchell wrote: Wed Nov 03, 2021 5:03 pm Simple API to perform AES encryption on Android with no dependancies. This is the Android counterpart to the AESCrypt library Ruby and AESCrypt-ObjC created by Gurpartap Singh. It used the same weak :'( security defaults i.e Blank IV noted below.

For compatiblity with AESCrypt, AESCrypt-Android has the same defaults namely:

256-bit AES key
CBC mode
PKCS7Padding
Blank/Empty IV (default)*
*Using CBC with the default blank IV is vulnerable. This has been left in for compatibility with AESCrypt implementations. See Adv method for providing your own IV. If you don't need to be compatable with AESCrypt then look at java-aes-crypto it's API is just as simple and generates more secure keys.
You are referring to a completely different program called "aescrypt" than AES Crypt. The latter (which is what this forum is about) definitely does not leave the IV empty. It is populated with random values.
User avatar
paulej
Posts: 571
Joined: Sun Aug 23, 2009 7:32 pm
Location: Research Triangle Park, NC, USA
Contact:

Re: How to build AES Crypt for Android shared Library ( JNI )

Post by paulej »

Post Reply