On linux, is there something like a key or token which is only accessible to the logged-in user on the current machine to uniquely identify him? So that a file, which has been encrypted with this key or token could only be decrypted on this machine by this user?
I'm specifically looking for a built-in way. A simple workaround would be to generate a key and store it in a directory, which only the current user can access (as suggested in this answer). But I would be interested in avoiding the filehandling part of this solution.