Software /
code /
prosody
Comparison
core/s2smanager.lua @ 593:121d82243023
Slightly more secure dialback secret generation
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sun, 07 Dec 2008 03:12:22 +0000 |
parent | 583:5821eaa80baa |
child | 615:4ae3e81513f3 |
comparison
equal
deleted
inserted
replaced
592:c6e2c727d0cc | 593:121d82243023 |
---|---|
41 | 41 |
42 local log = logger_init("s2smanager"); | 42 local log = logger_init("s2smanager"); |
43 | 43 |
44 local sha256_hash = require "util.hashes".sha256; | 44 local sha256_hash = require "util.hashes".sha256; |
45 | 45 |
46 local dialback_secret = "This is very secret!!! Ha!"; | 46 local dialback_secret = sha256_hash(tostring{} .. math.random() .. socket.gettime(), true); |
47 | 47 |
48 local dns = require "net.dns"; | 48 local dns = require "net.dns"; |
49 | 49 |
50 module "s2smanager" | 50 module "s2smanager" |
51 | 51 |