Skip to content

Decrypt with openssl , or other cli tool? #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
smoser opened this issue May 18, 2023 · 0 comments
Open

Decrypt with openssl , or other cli tool? #1

smoser opened this issue May 18, 2023 · 0 comments

Comments

@smoser
Copy link

smoser commented May 18, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant