Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SHA512 in password encryption #75

Closed
ifleg opened this issue Jan 23, 2017 · 3 comments
Closed

SHA512 in password encryption #75

ifleg opened this issue Jan 23, 2017 · 3 comments
Assignees
Milestone

Comments

@ifleg
Copy link

ifleg commented Jan 23, 2017

Hi,
In our ldap we want to use SHA512 for security reasons.
I thus modified the source code to add it.
In lib/functions.inc.php

# Create SHA512 password
function make_sha512_password($password) {
    $hash = "{SHA512}" . base64_encode(pack("H*", hash('sha512', $password)));
    return $hash;
}
.
.

if ( $hash == "SHA512" ) {
            $password = make_sha512_password($password);
        }

I would suggest you to implement such a mecanism in future versions.
F.

@coudot coudot self-assigned this Jan 23, 2017
@coudot coudot added this to the 1.1 milestone Jan 23, 2017
@coudot
Copy link
Member

coudot commented Jan 23, 2017

Indeed, will add this to next version

@ifleg
Copy link
Author

ifleg commented Jan 23, 2017

Wonderfull !

@coudot
Copy link
Member

coudot commented Mar 22, 2017

Done by @plewin in PR #93

@coudot coudot closed this as completed Mar 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants