• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps AEADBadTagException Caused by KeyStoreException: Signature/MAC verification failed

I use AES key with this code to encrypt:

private EncryptionResult encrypt(SecretKey secretKey, String message) throws Throwable {
Cipher cipher = Cipher.getInstance("AES/GCM/NoPadding");
cipher.init(Cipher.ENCRYPT_MODE, secretKey);
byte[] cipherText = cipher.doFinal(message.getBytes(StandardCharsets.UTF_8));

// save in an object encoded with iv
EncryptionResult result = new EncryptionResult(Base64.encodeToString(cipherText, Base64.NO_WRAP), cipher.getIV());
return result;
}


And I use this code to decrypt:

private String decrypt(SecretKey secretKey, EncryptionResult encryptionResult) throws Throwable {
byte[] salt = encryptionResult.getIV();
GCMParameterSpec gCMParameterSpec = new GCMParameterSpec(128, salt);

Cipher cipher = Cipher.getInstance("AES/GCM/NoPadding");
cipher.init(Cipher.DECRYPT_MODE, secretKey, gCMParameterSpec);
byte[] decodeBase64 = Base64.decode(encryptionResult.getBase64EncryptedValue(), Base64.NO_WRAP);
byte[] decryptedValue = cipher.doFinal(decodeBase64);
return new String(decryptedValue);
}


The "message" that is being encrypted is a RSA key size 2048.
It works on MOST of the popular devices, but the decryption fails on some others like Meizu (M5, M3E), Huawei (P40, Nova 5T), Samsungs (J7, A10), etc... where it crashes do to "AEADBadTagException... Caused by KeyStoreException: Signature/MAC verification failed".
If I reduce the "message" to 1024, it also works fine (although as far as I know, AES key has no size limitation for encryption).
I also tried using CipherOutputStream/CipherInputStream, but got the same result.
All looks good with Base64 encoding/decoding, tags, iv, keyStore... any other components envolved in the process.

Does anyone can shed some light why some devices do the work, while others fail?

[FREE][GAME] Dead Zone - Action TPS


'Dead Zone' is the best TPS game on mobile.
Experience the fun of new shooting action with next-generation graphics and controls

■ Features
1. [AAA] Realistic 3D graphics
AAA console quality realistic third person shooter.

2. [Action] Best Action
Amazing action with various motions.

3. [Pattern] Various monsters
Various attack patterns by monster

4. [Weapons] Various weapon upgrades
Upgrade weapons and evolve

5. [Survival] Last Survivor
Survive to the end and become the last survivor!

■ Adjust your graphics options according to your device specifications!

■ Support
Facebook: https://www.facebook.com/deadzonem


Google Play
https://play.google.com/store/apps/details?id=com.forzagames.deadzone

[Free game] Split Area - Scale, Cut territory.

Let me present you my application.

This is a puzzle game in which you have to cut off the territory without touching the ball to pass through level after level. The principle is not complicated, but do not be seduced, at the same time to predict the trajectory of the ball and quickly act not so easy.

The goal of this game is to cut the board into small enough pieces and capture the balls in the smallest areas possible! You need to cut and shrink the board, placing the slicers in the right places and not touch the ball.
Before placing the slicer, pay attention to the ball, predict the trajectory of its movement and don't let it touch your line before the split is complete or you lose a life.

Google Play: https://play.google.com/store/apps/details?id=de.softan.slices.splitarea

full


GAME MODES:
● Endless mod - This is the best place to compete with your friends for the champion title! Collect the maximum number of points and compare your records with your friends!
●Level map - consists of levels of varying difficulty, it gets harder as it goes on, especially when there are more balls!
● A set of free thematic balls will make your game even more exciting and your balls more attractive!

play-market-png.158382


Also more apps on brainsoft-apps.com

Attachments

  • Play market.png
    Play market.png
    578.4 KB · Views: 738

[FREE] [GAME] Multiplication Table - Learn Easily

Learn times tables with one of the coolest math games!

Our App is an effective way to learn multiplication tables (from 1 to 20) and improve your mental math skills by playing and having fun

We designed multiplication flashcards especially for you. So you can practice multiplication and guess all math puzzles! Solve multiply tests and pass school exams or just kill time profitably.


The game has three modes

Training mode
You can choose the size of the table you want to study (x10 or x20) as well as the type of game - test, truth or lie, input.

Study
Learn the multiplication table from 1 to 20, and then test your knowledge by solving the multiplication and division examples.

Test mode
This mode is designed to fix the material. You can choose your own level of complexity (light/middle/complex, and the application will select the intensity according to your level.


After each training or test, you have the opportunity to see which questions have been answered correctly and which have not. This will help next time to improve the result and remember the multiplication table!

We've added interesting puzzles and tricky questions to keep you entertained. You can not only practice your multiplication table, but also train your logical thinking, intelligence and concentration.

Google Play Link: https://play.google.com/store/apps/details?id=de.softan.multiplication.table

full


The app trains attention, memory, kinetic response and also makes learning the multiplication table fun and interesting!
Let me know what you think! I will follow the comments and if necessary correct some bugs.

Also more apps on brainsoft-apps.com

I've bricked my T1-A21L Huawei tablet.

So what happened i finally rooted my tablet with kingroot (I wasnt allowed to root trough PC because im a kid. So I just used kingroot application. Then i instantly opened the GameGuardian application (exploit for games that works on virtual space or with root). Then I watched few videos how to get unlimited diamonds on Sword art online memory defrag. It did work but at the same time i. couldn't use them. Then i thought hmm. What about TeamWin? (there was no recovery IMG file for my tablet so I just chose a random huawei tablet). I downloaded the IMG file and then flashed it. Then i just noticed what have i done? the tablet didn't even have a OEM unlock option in dev options. Help would be appreciated because that's the tablet I got for my birthday





Thanks,
Andre aka ErasedZim

Mi A2 Lite-accidentally removed OS,can't install stock or custom roms - help needed

Hello, hoping someone might be able to help me? I installed TWRP 3.3.0-dees_troy on my MI A2 Lite. Somehow whilst trying to update the phone to Android 10, I've managed to remove the OS (Android 9 @ 1.2020 prior to original OTA update to Android 10 which caused a bootloop problem). I have since tried all sorts of methods via videos and instructions on the internet and have not been able to reinstall any OS be it stock or custom. Before doing so I'd unlocked the bootloader, enabled Developer options etc. Would be grateful for any assistance you can offer. Desperately hoping a kind soul on here can help me get my phone up and running.? Thank you and best wishes

Browse archive via Windows Explorer - wifi

Hi everyone,

I just bought a Realme 6 (first Android smartphone after 4 BlackBerry and 1 iPhone) and I'm wondering how to access the smartphone's internal storage via wifi and using Windows Explorer, no browsers or apps. I just searched the internet for 2 hours but didn't find anything.
Is there any way to do it? I could do it on Z10 and Z30 6 years ago, so I cannot believe it can't be done in 2020 on Android.

Thank you for your help!

Apps Internal & Closed Track - how to install

I've uploaded an app bundle to the play store and have it in both internal test track and closed track testing. For internal, I added a list of my testers - including my personal Gmail account.

When I go to the app store on my personal phone I can't see the new app. I've signed up to beta testing, still no sign of the new app. I need to give instructions to my testers on what to do, but I can't even do it myself!

I haven't got any error messages and there's permissions info they've added after reviewing the app. What am I missing?

Help Unknown stream audio comming from phone, need hidden Process & app monitoring, & general security.

Greetings,

My mothers phone has run in to an unusual bug or has been compromised. At random points it will start playing sounds of what appears to be a stream or something in someones living room, the sounds of people talking in the background and some louder closer to the other device, like a party. The sounds will happend when the device is locked and will persist when unlocked, when on the home screen or any app. The sound responds to the media volume slider. My first instinct when hearing it happen for myself would be that this is not some kind hack or security breach, but rather a bug with youtube or facebook running in the background and playing a livestream of some sort. No apps are (visibly) open or running in the background.

I tried to look around the appstore for apps that would help me show hidden processes or could show me what exactly is producing sound at the moment it happens again or what is using wifi bandwith (because the audio must be coming form somewhere so it should be visible on checking bandwith). However i have not really found the exact type of app i think would be helpfull. So i ask if anyone knows of a good process monitoring app that could be helpfull in showing what is running in this exact moment.

I have scanned with malwarebytes and it came up empty. One of the monitoring apps claime that the facebook app had used over 1Gb of traffic today alone, even though it claims to only have use around 3.5Gb the whole past year. I am not to sure how accurate the claim of this app is, but regardless it would corroberate my suspiscioun this audio is coming from a bug in the facebook app. When i open the facebook app it shows nothing special playing, just her standard wall. In the meantime i have deleted the facebook app just to check if it happens again.

So what i would really need to help me is recomendations on apps that cleanly and easily show me:
-what process/app is playing audio right now
-what process/app is using bandwith
-what processes and apps are currently actively doing something.

Other general advice about security and scanning is also welcome.
I have never had to worry about security myself, as a millenial i know my way around the web and have only ever downloaded apps from the play store.
But my mother on the other hand, despite my best attempts to teach her how to install an app from the appstore claims it's to difficult, but it is far easier to click "download" on a shady websites. :p
However that being said i did interrogate her about anything she might have installed recently and the only recent thing was the official Weight Watchers app from the playstore, and these occurences have only started recently, so it doesn't seem like it's a rogue shady app.

Anyhows, bug or compromised, i hope to find out soon.

Thanks.


Edit: also weird detail, the voices we hear are in english, and we are not english speakers. So it can't be a stream or whatsapp call from local friends.

Filter

Back
Top Bottom