Security for doors and windows