public DataInfo Register(string username, string password) { var info = new PeerInfo() { Hash = BitConverter.ToString(_hash.ComputeHash(Encoding.UTF8.GetBytes(username + password))) }; _distributionManager.DistributeAuthorizationData(info); throw new NotImplementedException(); }
public void DistributeAuthorizationData(PeerInfo info) { throw new NotImplementedException(); }
public string RetrieveAuthorizationData(string hash) { var data = new PeerInfo() {Data = "retrieved by hash"}; return data.Data; }
public void SavePeerInfo(PeerInfo info) { throw new NotImplementedException(); }