Skip to content

Decrypt string and original string are not equal #3

@Partenopeo83

Description

@Partenopeo83

Hi, i trying to test the script for a project. But i noted that after decryptation the string is not equal to the original.Why?

This is my code:

var bf = new Blowfish('text code');
var test = "test";
var ciphertext = bf.encrypt(test);
var plaintext = bf.decrypt(ciphertext);

    console.log(plaintext);
    alert(test === plaintext);

Thanks for help !

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