2021-11-10 21:34:54 +00:00
|
|
|
namespace MediaBrowser.Model.Cryptography
|
2019-09-17 16:07:15 +00:00
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Class containing global constants for Jellyfin Cryptography.
|
|
|
|
/// </summary>
|
|
|
|
public static class Constants
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// The default length for new salts.
|
|
|
|
/// </summary>
|
2021-11-10 21:34:54 +00:00
|
|
|
public const int DefaultSaltLength = 128 / 8;
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// The default output length.
|
|
|
|
/// </summary>
|
|
|
|
public const int DefaultOutputLength = 512 / 8;
|
2019-09-17 16:07:15 +00:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// The default amount of iterations for hashing passwords.
|
|
|
|
/// </summary>
|
2021-11-10 21:34:54 +00:00
|
|
|
public const int DefaultIterations = 120000;
|
2019-09-17 16:07:15 +00:00
|
|
|
}
|
|
|
|
}
|