Function

NM-1.0NMutils_base64secret_decodeSince 1.16

  • Parameters

    • base64_key: string

      the (possibly invalid) base64 encode key.

    • required_key_len: number

      the expected (binary) length of the key after decoding. If the length does not match, the validation fails.

    Returns [boolean, number]

    true if the input key is a valid base64 encoded key with required_key_len bytes.

    1.16