Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
2.2k views
in Technique[技术] by (71.8m points)

openssl decrypt issue fails with EVP_DecryptFinal_ex:bad decrypt

I am using OpenSSL 1.1.1f 31 Mar 2020 and I have a problem decrypting the data encrypted with openssl.

The encrypt command is

openssl enc -aes-256-cbc -md sha512 -pbkdf2 -iter 100000 -salt -in in.txt -out out.dat

The decrypt command is

openssl aes-256-cbc -d -md sha256 -salt -iter 100000 -pbkdf2 -in out.dat -out out.txt

The error is

enter aes-256-cbc decryption password: bad decrypt 139749253547328:error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt:../crypto/evp/evp_enc.c:583:

Thanks

question from:https://stackoverflow.com/questions/65847109/openssl-decrypt-issue-fails-with-evp-decryptfinal-exbad-decrypt

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

57.0k users

...