If you are using a decrypt string like the one below, you will encounter an error on macOS Ventura when attempting to decrypt. See below:
#!bin/bash
## Decrypt string using salt and phrase.
function DecryptString() {
echo "${1}" | openssl enc -aes256 -d -a -A -S "${2}" -k "${3}"
}
bad decrypt
4370875948:error:06FFF064:digital envelope routines:CRYPTO_internal:bad decrypt:/AppleInternal/Library/BuildRoots/a0876c02-1788-11ed-b9c4-96898e02b808/Library/Caches/com.apple.xbs/Sources/libressl/libressl-2.8/crypto/evp/evp_enc.c:521:
SOLUTION:
You will need to add "-md md5" to your enc string. This will work across macOS versions 13 back through at least 10.12.
#!bin/bash
## Decrypt string using salt and phrase.
function DecryptString() {
echo "${1}" | openssl enc -md md5 -aes256 -d -a -A -S "${2}" -k "${3}"
}