attempted decrypt function