Skip to content

browser.aesCbcEncrypt is not working properly. #67

Description

@ibudisteanu

calling browser.aesCbcEncrypt (
encryption_key = 916819a3e7f2a3f16a6fc12dc0515acb1e2570687a7968c9cb0bef7025623ee0
iv = 8d0e8b2db03c966dccb4ca2bfbb31d6f
message = 6c393a46494e445f4e4f44456c33323ac6a3da79d9af73fa972d4e62effa62bc927c651c602ddd658637c1402f5a2bde6565
)

the ciphertext output is fe99edc46b894035d1b719ab672fe2d7.

Shouldn't the final output had to have the same length as my initial message?
Also, I can't decrypt it on my node.js.

Shouldn't the ciphertext be:

8c 76 30 c2 0d 39 9e 5e e6 2f 1f bc 13 94 90 4b 98 0c d7 24 32 fa c7 ba 01 19 09 8c f6 a4 83 97 33 31 14 ae ee f5 01 50 24 10 5b e5 f3 54 10 61 33 31 14 ae ee f5 01 50 24 10 5b e5 f3 54 10 61

What am I doing wrong ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions