Skip to content

Decrypt string and original string are not equal #3

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 !

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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