question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Google Play reporting "Unsafe cipher mode" for StorageHelper.java

See original GitHub issue

Issue

Our android app is receiving this error in our Google Play pre-launch report :

Your app contains a less secure encryption mode:
 * com.microsoft.identity.common.adal.internal.cache.StorageHelper->getKeyThumbPrint

Proposed Solution

To resolved the error. The report suggests changing from existing cyber algorithm from:

private static final String CIPHER_ALGORITHM_FOR_KEY_TRACKING = "AES/ECB/PKCS5Padding";

to

private static final String CIPHER_ALGORITHM_FOR_KEY_TRACKING = "AES/GCM/NoPadding";

as described in this linked faq

Affected Lib Versions

We have been getting the same error for apps using MSAL releases 2.2.1 and 2.1.0.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
Digipomcommented, Dec 17, 2021

Just commenting that the issue is still present in version 2.2.2. I’m receiving this warning as well.

4reactions
AdamBJohnsonxcommented, Oct 22, 2021

This is mostly a spurious warning, and it is unfortunate that it is being applied in this manner. The cipher mode in question isn’t actually being used for encryption, but as a seed to a hash function for the purpose of tracking when users reset keys using deprecated apis. I think we’re removing this completely in the next release in favor of a different mechanism.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unsafe Cipher Mode warning in Google Play pre-launch report
When uploading our app to Google Play, Google complaints about "Unsafe Cipher Mode" in "Pre-launch report", referencing this ...
Read more >
Remediation for Unsafe Cryptographic Encryption - Google Help
This information is intended for developers with app(s) that contain unsafe cryptographic encryption patterns. That is, a ciphertext is generated with a ...
Read more >
Diff - platform/platform_testing - Google Git
ElementType; +import java.lang.annotation. ... + * + * This method will select the first clip to open and play. ... Notification; +import android.app....
Read more >
Analysis Report authenticator-6-2102-0762.apk - Joe Sandbox
Performs DNS lookups (Java API). Potential date aware sample found. Queries a list of installed applications. Queries camera information.
Read more >
SENSOR MONITOR FOR ANDROID A Project - ScholarWorks
report and provide valuable suggestions and feedback. ... Software Development Kit and Google Play Services. ... Languages: Java and Python.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found