Skip to content

Error: Unsupported schema version 2 #20

@AzriDelta

Description

@AzriDelta

Hello.

When decrypting the string which is already in base64, I encountered this error.

Sample of my code:

var password = "password";
var encrypted_username = "AgG0hYmf7iEEEsZRb213DFX65Uoe7iiwwDG6VWsC3+WuFBknZRWWnSzyoUHZkAlOgA3G6s4pukD8R6s9ErWsypAGA2xQRrLwjXJ0YXtaaxkjog=="

var decrypted_username = RNCryptor.Decrypt(encrypted_username, password);
console.log("Decrypted username:", decrypted_username.toString());

Even using Buffer is not working, and return the same error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions