summaryrefslogtreecommitdiffstats
path: root/lib/class/api.class.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-10-30 17:17:27 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-10-30 17:17:27 +0000
commit0a08d312b72650162b1ef58cb1068634b7552964 (patch)
treef62bb3fcef8ba326b514f5b8cf3046935ba88859 /lib/class/api.class.php
parentdac46f0b6e8e4d5dff51b3f5b97f6cc5332f7b88 (diff)
downloadampache-0a08d312b72650162b1ef58cb1068634b7552964.tar.gz
ampache-0a08d312b72650162b1ef58cb1068634b7552964.tar.bz2
ampache-0a08d312b72650162b1ef58cb1068634b7552964.zip
move to sha256 for passwords API and Interface
Diffstat (limited to 'lib/class/api.class.php')
-rw-r--r--lib/class/api.class.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/class/api.class.php b/lib/class/api.class.php
index d5635263..af44c6b5 100644
--- a/lib/class/api.class.php
+++ b/lib/class/api.class.php
@@ -96,7 +96,7 @@ class Api {
return false;
}
- $sha1pass = hash('sha1',$timestamp . $row['password']);
+ $sha1pass = hash('sha256',$timestamp . $row['password']);
if ($sha1pass === $passphrase) {
// Create the Session, in this class for now needs to be moved