Disable Copy/Paste

How can I disable copy-paste on a field with js. Due to regulations, the users shojld not be allowed to copy paste user id & pwd.

Not out of the box. Look up for a js utility.