Crypt (C) This article is about the Unix C library function. For the Unix utility, see Crypt (Unix). crypt is the library function which is used to compute a password hash that can be used to store user account passwords while keeping them relatively secure (a passwd file).