Skip to content

Incorrect result with CBC #13

@tandrus

Description

@tandrus

I run code from your example

const {Blowfish} = require('javascript-blowfish');

const bf = new Blowfish("key", "cbc");

// Encrypt and encode to base64
const encrypted = bf.encrypt("secret message", "cbcvecto");
const decrypted = bf.decrypt(encrypted, "cbcvecto");

console.log(decrypted);

Result of output is secret m]8⑿餸

Node version 12.16.1
Ubuntu 18.04.1

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