Give using placeholders a shot

Rather than check for a specific text, we now use placeholders and check if $encrypted and $decrypted are null.