C# Class SRPServer.PlayerDatabaseEntry

ファイルを表示 Open project: SleeplessByte/lidgren-srp6a Class Usage Examples

Public Methods

Method Description
Generate ( String username, String password, Int32 keysize ) : PlayerDatabaseEntry

This functions generates a database entry for the given username and password. It is key that this function can only be called from a safe environment and that the password is sent safely to this function. Think about SSL encryption or one time one way keys and so forth. Do your best! We actually generate these on the client so the password is NEVER sent over the network, and then sent it over an encrypted channel.

Method Details

Generate() public static method

This functions generates a database entry for the given username and password. It is key that this function can only be called from a safe environment and that the password is sent safely to this function. Think about SSL encryption or one time one way keys and so forth. Do your best! We actually generate these on the client so the password is NEVER sent over the network, and then sent it over an encrypted channel.
public static Generate ( String username, String password, Int32 keysize ) : PlayerDatabaseEntry
username String
password String
keysize System.Int32
return PlayerDatabaseEntry