Skip to content

UNSUPPORTED_ALGORITHM Error #139

@haizadvnet

Description

@haizadvnet

I got PlatformException (PlatformException(UNSUPPORTED_ALGORITHM, cryptography_flutter does not support algorithm null in Android., null, null))

Source code

final pbkdf2 = FlutterPbkdf2(
        macAlgorithm: Hmac.sha1(),
        iterations: 1001,
        bits: 256,
      );

final newSecretKey = await pbkdf2.deriveKeyFromPassword(password: pass, nonce: salt.codeUnits); // <-- throws error when running the deriveKeyFromPassword function.
_internal.dart

await _methodChannel.invokeMethod('encrypt', {}); <-- the error comes from this invokeMethod

It throws error only if I checked All Exception on vsCode breakpoints.

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions