Welcome to the Linux Foundation Forum!

woboyle

About

Username
woboyle
Joined
Visits
0
Last Active
Roles
Member
Posts
501

Activity

  • hsiaok

    Hi,
    You wrote in year 2012: standard password encryption for Unix was 56-bit DES using a salt value.
    That's a 9 years ago; I hope you see my post below.
    I have experienced recently password encryption using salt; like this as test
    Hsiao, Ketung [US] (ES) [email protected]
    To:[email protected]
    Thu, Mar 18 at 9:13 PM

    define _XOPEN_SOURCE

    include <unistd.h>

    include <stdio.h>

    include <stdlib.h>

    int main(){
    printf("\n%s\n",crypt("abc","ab"));
    printf("\n%s\n",crypt("abc","~."));
    }

    The strange is in our linux Redhat 6, this give:
    absome-txt
    ~xsome-different-txt

    but in linux Redhat 7
    it gives
    absome-txt
    null

    Could the null return using '~`' as salt is duel different standard such as 56-bit DES ?
    how to find out which standard the crypt function is using ?

    best regard,
    Kate

    March 19