You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On a jetpack compose android application, you receive this error: Caused by: java.lang.RuntimeException: java.security.NoSuchAlgorithmException: SHA-512/256 MessageDigest not available
When trying to parse an account with a Mnemonic.
Android apparently has its own outdated bouncy castle implementation.
Solution
This needs to be added to the oncreate of the application.
class MyApp : Application() {
override fun onCreate() {
super.onCreate()
Security.removeProvider("BC")
Security.insertProviderAt(BouncyCastleProvider(), 0)
}
}
This code could be added to the README for android developers.
Dependencies
Urgency
Pretty urgent, the solution is present in an algorand forum thread, but its hard to find.
The text was updated successfully, but these errors were encountered:
Problem
On a jetpack compose android application, you receive this error: Caused by: java.lang.RuntimeException: java.security.NoSuchAlgorithmException: SHA-512/256 MessageDigest not available
When trying to parse an account with a Mnemonic.
Android apparently has its own outdated bouncy castle implementation.
Solution
This needs to be added to the oncreate of the application.
class MyApp : Application() {
override fun onCreate() {
super.onCreate()
Security.removeProvider("BC")
Security.insertProviderAt(BouncyCastleProvider(), 0)
}
}
This code could be added to the README for android developers.
Dependencies
Urgency
Pretty urgent, the solution is present in an algorand forum thread, but its hard to find.
The text was updated successfully, but these errors were encountered: