An authentication method, system, and computer program product for decoding brain activity into a brain pattern sequence, applying brain dialog to interact with a user while the user is entering the brain pattern sequence, and matching the brain pattern sequence with a predetermined password to allow access to a system.