Locks and seals for containers, in particular those including an automatic self-checking and warning system against tampering, are provided. The lock has an infra-red (1R)-bases mechanism, with an IR emitter and an IR receiver, communicating through a waveguide such that an IR pulse emitted by the IR emitter can pas...