it's illegal to plant things on private property (bugging) and to record private lines by digital means (wire tapping etc) without consent

it is not illegal to put a tape recorder in your bag and record someone's conversation, however blackmail is