Search found 3 matches

by rjk
Mon Apr 23, 2012 11:37 am
Forum: AES Crypt
Topic: AESCrypt for Android
Replies: 3
Views: 5474

Re: AESCrypt for Android

Because using a fixed value (like DEFAULT_MAC) is not desirable, in generateIv1() I replaced "mac = DEFAULT_MAC;" with "mac = generateRandomBytes(8);" I incorporated AESCrypt.java into an Android program that I wrote for myself to decrypt small (<1MB) text files and speed has not...
by rjk
Mon Apr 16, 2012 12:03 pm
Forum: AES Crypt
Topic: Memory Leak in encrypt method on Android
Replies: 1
Views: 4087

Re: Memory Leak in encrypt method on Android

Have you tried creating the ByteArrayOutputStream within the for loop?
i.e. put "ByteArrayOutputStream baos = new ByteArrayOutputStream(ONE_MEGABYTE+ONE_KILOBYTE);" inside the for loop and replace the "baos(reset)" in the for loop with "baos(close)".
by rjk
Fri Mar 09, 2012 9:17 am
Forum: AES Crypt
Topic: AES Crypt for encrypting strings
Replies: 9
Views: 27654

Re: AES Crypt for encrypting strings

Yes please, that would be useful.