Hello. I have a problem with decrypt our backup.
I use this commands to encrypt
What wrong with it ?
I use this commands to encrypt
Code:
date=$(date +"%Y-%m-%d")
tar -zcvf /var/sshfs/bac/named_$date.tar.gz /var/named
gzip < /etc/named.conf > /var/sshfs/bac/named.conf_$date.gz
tar -zcvf /var/sshfs/back/dns1_$date.tar.gz /var/sshfs/bac
openssl enc -aes-256-cbc -salt -in /var/sshfs/back/* -out /var/sshfs/backup/dns1_$date.gz.enc -k bgm$wmd:f%msx23_4
Code:
[root@v47154 ~]# openssl enc -aes-256-cbc -d -in dns1_2021-03-22.gz.enc -out dns1_2021-03-22.gz -k bgm$wmd:f%msx23_4
bad decrypt
140665132689296:error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt:evp_enc.c:592:
What wrong with it ?