Rogelio escribió:
Has anyone a idea if its possible to change the digest that is using windev mobile to sign the application ?, the reason for my question is that by default windev uses SHA-1 Digest on the application, and that only supports 1024 Bits key signing. Amyone know if its possible to sign a windev mobile with a 2048 bit key ?.
I have try to make keystores with that length of a key but i always get the error:
-digestalg SHA1 -sigalg SHA1withDSA "test.apk" test
Error returned:
jarsigner error: java.security.InvalidKeyException: The security strength of SHA-1 digest algorithm is not sufficient for this key size
When i use a 1024 bit key it works fine and no problem is encountered, anyone has come across this before ?
i just think it would be nice to be able to sign the apps with a higher key strength
Thanks for any help
https://emilyandblair.com/funny-rainy-day-quotes/It seems like you're running into issues with the SHA-1 algorithm's limitation when trying to sign your Windev Mobile app with a 2048-bit key. SHA-1 is indeed outdated and not recommended for stronger key lengths like 2048-bit. Instead, you should switch to a more secure digest algorithm like SHA-256.
Here's what you can try:
Create a new keystore with a 2048-bit key using SHA-256:
yaml
Copy code
keytool -genkeypair -keyalg RSA -keysize 2048 -sigalg SHA256withRSA -keystore yourkeystore.keystore
When signing the APK, use the following:
Copy code
jarsigner -keystore yourkeystore.keystore -digestalg SHA-256 -sigalg SHA256withRSA test.apk youralias
This should allow you to sign the APK with a 2048-bit key without running into the SHA-1 limitation. Let me know if this helps!
https://compassmobile-dollartree.pro/