echo "I'll help you decrypt your encrypted message using the RSA private key."
echo "First, let's set up the environment and decrypt the message."

# Create a temporary file for the encrypted message
echo "nDap9IiiZFThYxXt5To8XjfjLmgYDPF8PnhDLFy7s3Qa6gUeoOUT6oIBqudd8qOD3k11XMtFbjON4iFMdn3vJc0YuVGuos4PFuG58f775VO8Fl3gW/OvSPQ3Sx9KcfNbALxrABwrAlxjEHhn/TnG2yImFaUj586dTYxFv+/Y8zs5ImwU6OjG9S76zcE+/Dtp/wS20/bctomnjisfdEQs26J5bu1/VaMyK0AqmG+b/2ozI8mW5vT3Kf9r8JIqYEZFfuj9QZmnpHmXTFizDP19U4q6UY+Gb2fIgVVRMoS/WcQM/IOmgQMlvNrpE1hDxdP/UR3nE8DgGs10QGgiwi83AQ==" > /tmp/encrypted_message.txt

# Base64 decode the message
base64 -d /tmp/encrypted_message.txt > /tmp/encrypted_message.bin

echo "Enter password"
read -s password

# Use the password to decrypt the private key and then decrypt the message
echo "$password" | openssl pkeyutl -decrypt -inkey /tmp/asset_kcUwcH.pem -passin stdin -in /tmp/encrypted_message.bin -out /tmp/decrypted_message.txt 2>/tmp/error.log

if [ $? -eq 0 ]; then
    echo -e "\nDecrypted message:"
    cat /tmp/decrypted_message.txt
else
    echo -e "\nDecryption failed. Error message:"
    cat /tmp/error.log
fi

# Clean up temporary files
rm -f /tmp/encrypted_message.txt /tmp/encrypted_message.bin /tmp/decrypted_message.txt /tmp/error.log

