Lua salting object - VanaDev/Vana GitHub Wiki
account = { ["salt"] = { ["type"] = system_salt_append, ["args"] = { }, }, ["salt_modify"] = { { ["type"] = system_salt_append, ["args"] = { "abc" }, }, { ["type"] = system_salt_prepend, ["args"] = { "abc" }, } }, ["salt_size"] = 0, };
Required: Yes
Type: salt policy object
Notes: Determines how the server will apply the finalized salt to the plaintext before generating the hash. Changes to this value must accompany a reset of either user passwords or a restart of all servers.
Required: Yes
Type: table of salt modify policy objects
Notes: Determines how the server will finalize the salt. This gives extra security because you can have an arbitrary number of transformations, each one is configurable, and the order is important. This means that even if they obtain a salt from a DB dump, it is difficult to find the corresponding plaintext. Changes to this value must accompany a reset of either user passwords or a restart of all servers.
Required: Yes
Type: uint32 or min/max object
Notes: Changes how large the generated salts will be. Changing this value does not require resetting anything. If specified as a min/max object, both min and max are required. If specified as a number, 0 means "use a predefined random min and max."