implement crypt(3)

Signed-off-by: psi <ledyba@users.sourceforge.jp>