Skip to content

Unexpected results with CBC #12

@hugo-dlb

Description

@hugo-dlb

Hello,

I have unexpected results that are not the same as http://www.txtwizard.net/crypto and other websites.

My code:

const bf = new Blowfish('secret', 'cbc');
const encrypted = bf.encrypt('message', '00000000');  
const base64Encrypted = bf.base64Encode(encrypted);
console.log(base64Encrypted);

Output:
fzAONXVl9nA=

Output with the same parameters from txtwizard:
/ClZ1D/um40=

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