Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

des command on openssl 3.0 unsupported crypto error

Tags:

openssl

I am using openssl version 3.0.0.7 and running following DES command for encryption. Running this command on windows10 command prompt. input file secret_messge.txt consists of following

hi there, the message is secret, hi there

and command used is below

openssl enc -des-ecb -e  -in secret_message.txt -out simple-cipher-message.bin -K b2a2d62eab19114f
Error setting cipher DES-ECB
6C0C0000:error:0308010C:digital envelope routines:inner_evp_generic_fetch:unsupported:crypto\evp\evp_fetch.c:346:Global default library context, Algorithm (DES-ECB : 4), Properties ()
like image 713
venkysmarty Avatar asked Sep 17 '25 17:09

venkysmarty


1 Answers

DES encryption is considered legacy and is no longer available by default in the "enc" command. To use it you would need to load the legacy provider, e.g.

openssl enc -des-ecb -e  -in secret_message.txt -out simple-cipher-message.bin -K b2a2d62eab19114f -provider legacy -provider default
like image 186
Matt Caswell Avatar answered Sep 21 '25 01:09

Matt Caswell