crypt/socket examples