Software /
code /
prosody
Diff
core/s2smanager.lua @ 450:e04c4052742c
Merge from waqas
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 27 Nov 2008 23:36:49 +0000 |
parent | 448:2623519b25b0 |
child | 451:e9f269e5204e |
line wrap: on
line diff
--- a/core/s2smanager.lua Thu Nov 27 23:36:17 2008 +0000 +++ b/core/s2smanager.lua Thu Nov 27 23:36:49 2008 +0000 @@ -21,7 +21,7 @@ local log = logger_init("s2smanager"); -local md5_hash = require "util.hashes".md5; +local sha256_hash = require "util.hashes".sha256; local dialback_secret = "This is very secret!!! Ha!"; @@ -210,7 +210,7 @@ end function generate_dialback(id, to, from) - return md5_hash(id..to..from..dialback_secret); -- FIXME: See XEP-185 and XEP-220 + return sha256_hash(id..to..from..dialback_secret, true); end function verify_dialback(id, to, from, key)