updated correct lengths for salt and key, and am working on socket