Skip to content

Commit

Permalink
Use SHA256 instead of SHA1 for hashing api tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
vboctor committed Dec 2, 2015
1 parent f47329c commit 8cc1abb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/api_token_api.php
Expand Up @@ -69,7 +69,7 @@ function api_token_create( $p_token_name, $p_user_id ) {
* @access public
*/
function api_token_hash( $p_token ) {
return sha1( $p_token );
return hash( 'sha256', $p_token );
}

/**
Expand Down

0 comments on commit 8cc1abb

Please sign in to comment.