aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/Cryptography/Constants.cs
diff options
context:
space:
mode:
authorCody Robibero <cody@robibe.ro>2021-11-13 16:56:25 -0700
committerGitHub <noreply@github.com>2021-11-13 16:56:25 -0700
commit34df1a030bdefad3b5b1ca0553a85f59d046326f (patch)
treed9d123a0c1e65e58033a48e4b4c4932ad3c60780 /MediaBrowser.Model/Cryptography/Constants.cs
parent761a4e8415b2fc1023679c24ddd66fabf237abec (diff)
parent5265b3eee794762b4de39a68b5bfbf767faaac36 (diff)
Merge pull request #6818 from Bond-009/password
Diffstat (limited to 'MediaBrowser.Model/Cryptography/Constants.cs')
-rw-r--r--MediaBrowser.Model/Cryptography/Constants.cs23
1 files changed, 23 insertions, 0 deletions
diff --git a/MediaBrowser.Model/Cryptography/Constants.cs b/MediaBrowser.Model/Cryptography/Constants.cs
new file mode 100644
index 000000000..f2ebb5d3d
--- /dev/null
+++ b/MediaBrowser.Model/Cryptography/Constants.cs
@@ -0,0 +1,23 @@
+namespace MediaBrowser.Model.Cryptography
+{
+ /// <summary>
+ /// Class containing global constants for Jellyfin Cryptography.
+ /// </summary>
+ public static class Constants
+ {
+ /// <summary>
+ /// The default length for new salts.
+ /// </summary>
+ public const int DefaultSaltLength = 128 / 8;
+
+ /// <summary>
+ /// The default output length.
+ /// </summary>
+ public const int DefaultOutputLength = 512 / 8;
+
+ /// <summary>
+ /// The default amount of iterations for hashing passwords.
+ /// </summary>
+ public const int DefaultIterations = 120000;
+ }
+}