Skip to content

Decrypt with openssl , or other cli tool? #1

@smoser

Description

@smoser

tldr; How can I decrypt data encrypted with javascrypt using openssl or some other program.

I have some content that is encrypted with Javascrypt via dokuwiki plugin dokucrypt.

Content looks like this, and it can be decrypted at https://www.fourmilab.ch/javascrypt/javascrypt.html with the text password 'secret'

#####  Encrypted: decrypt with http://www.fourmilab.ch/javascrypt/
?b64Py5y9JZMVa728IXwqaBh+f9Tbz9jP9OvCY2UdexIz5i6bLRsCOF2IA9qECpp
Bc6oY+BAihtLdzyrtQA3x6yrxg==?64b
#####  End encrypted message

I'd like to decrypt that block of data using 'openssl' or some other tool that does aes-256 encryption.
I admit to not having tried very hard to find this out myself. I tried base64 decode the content between ?b64 and ?64b and then decrypt it with openssl enc -d -aes-256-cbc -in /tmp/enc.txt but that failed with 'bad magic number'.

This seems like it would be a good addition to README.md that I'd be happy to provide a PR for.

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