DRM is used to restrict copying and sharing of digital media like music, movies, software and games. It encrypts files to make them unreadable without the proper decryption key. Authentication systems check usernames and passwords to ensure only authorized users with the correct permissions can obtain a key to unlock and play the content. DRM aims to limit installations of software and number of devices music can be played on to prevent unauthorized copying and sharing of protected files.