Remove mcrypt as it is not maintained
Remove mcrypt as it is not maintained

See https://wiki.php.net/rfc/mcrypt-viking-funeral

Also rewrote the logic a bit to fix when a valid source fails to produce
an output

Re 5a61bf
cc @siimsoni

Picked from d6118c0ed3

jensscherbl/symphony,bauhouse/sym-todo-list,symphonycms/symphony-2,michael-e/symphony-2,symphonycms/symphony-2,michael-e/symphony-2,bauhouse/sym-todo-list,jensscherbl/symphony