Engineering data security for brain-computer interfaces