194 lines
9.7 KiB
HTML
194 lines
9.7 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title> Class Password | CapyKit Documentation </title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<meta name="title" content=" Class Password | CapyKit Documentation ">
|
|
|
|
|
|
<link rel="icon" href="../favicon.ico">
|
|
<link rel="stylesheet" href="../public/docfx.min.css">
|
|
<link rel="stylesheet" href="../public/main.css">
|
|
<meta name="docfx:navrel" content="../toc.html">
|
|
<meta name="docfx:tocrel" content="../toc.html">
|
|
|
|
<meta name="docfx:rel" content="../">
|
|
|
|
|
|
|
|
<meta name="loc:inThisArticle" content="In this article">
|
|
<meta name="loc:searchResultsCount" content="{count} results for "{query}"">
|
|
<meta name="loc:searchNoResults" content="No results for "{query}"">
|
|
<meta name="loc:tocFilter" content="Filter by title">
|
|
<meta name="loc:nextArticle" content="Next">
|
|
<meta name="loc:prevArticle" content="Previous">
|
|
<meta name="loc:themeLight" content="Light">
|
|
<meta name="loc:themeDark" content="Dark">
|
|
<meta name="loc:themeAuto" content="Auto">
|
|
<meta name="loc:changeTheme" content="Change theme">
|
|
<meta name="loc:copy" content="Copy">
|
|
<meta name="loc:downloadPdf" content="Download PDF">
|
|
|
|
<script type="module" src="./../public/docfx.min.js"></script>
|
|
|
|
<script>
|
|
const theme = localStorage.getItem('theme') || 'auto'
|
|
document.documentElement.setAttribute('data-bs-theme', theme === 'auto' ? (window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light') : theme)
|
|
</script>
|
|
|
|
</head>
|
|
|
|
<body class="tex2jax_ignore" data-layout="" data-yaml-mime="">
|
|
<header class="bg-body border-bottom">
|
|
<nav id="autocollapse" class="navbar navbar-expand-md" role="navigation">
|
|
<div class="container-xxl flex-nowrap">
|
|
<a class="navbar-brand" href="../index.html">
|
|
<img id="logo" class="svg" src="../logo.svg" alt="CapyKit Documentation">
|
|
CapyKit Documentation
|
|
</a>
|
|
<button class="btn btn-lg d-md-none border-0" type="button" data-bs-toggle="collapse" data-bs-target="#navpanel" aria-controls="navpanel" aria-expanded="false" aria-label="Toggle navigation">
|
|
<i class="bi bi-three-dots"></i>
|
|
</button>
|
|
<div class="collapse navbar-collapse" id="navpanel">
|
|
<div id="navbar">
|
|
<form class="search" role="search" id="search">
|
|
<i class="bi bi-search"></i>
|
|
<input class="form-control" id="search-query" type="search" disabled placeholder="Search" autocomplete="off" aria-label="Search">
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
</header>
|
|
|
|
<main class="container-xxl">
|
|
|
|
<div class="content">
|
|
<div class="actionbar">
|
|
|
|
<nav id="breadcrumb"></nav>
|
|
</div>
|
|
|
|
<article data-uid="">
|
|
<h1 id="CapyKit_Password"> Class Password</h1>
|
|
|
|
<p>Namespace: <a href="CapyKit.html">CapyKit</a><br>
|
|
Assembly: CapyKit.dll</p>
|
|
<p>Represents a password with its hash, salt and algorithm used for encryption.</p>
|
|
<pre><code class="lang-csharp">public class Password
|
|
</code></pre>
|
|
<h4 id="inheritance">Inheritance</h4>
|
|
<p><a href="https://learn.microsoft.com/dotnet/api/system.object">object</a> ←
|
|
<a href="CapyKit.Password.html">Password</a></p>
|
|
<h4 id="inherited-members">Inherited Members</h4>
|
|
<p><a href="https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)">object.Equals(object?)</a>,
|
|
<a href="https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)">object.Equals(object?, object?)</a>,
|
|
<a href="https://learn.microsoft.com/dotnet/api/system.object.gethashcode">object.GetHashCode()</a>,
|
|
<a href="https://learn.microsoft.com/dotnet/api/system.object.gettype">object.GetType()</a>,
|
|
<a href="https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone">object.MemberwiseClone()</a>,
|
|
<a href="https://learn.microsoft.com/dotnet/api/system.object.referenceequals">object.ReferenceEquals(object?, object?)</a>,
|
|
<a href="https://learn.microsoft.com/dotnet/api/system.object.tostring">object.ToString()</a></p>
|
|
<h4 id="extension-methods">Extension Methods</h4>
|
|
<p><a href="CapyKit.Extensions.ObjectExtensions.html#CapyKit_Extensions_ObjectExtensions_UpdateProperties__1___0___0_">ObjectExtensions.UpdateProperties<Password>(Password, Password)</a>,
|
|
<a href="CapyKit.Extensions.ObjectExtensions.html#CapyKit_Extensions_ObjectExtensions_UpdateProperties_System_Object_System_Object_">ObjectExtensions.UpdateProperties(object, object)</a></p>
|
|
<h2 id="constructors">Constructors</h2>
|
|
<h3 id="CapyKit_Password__ctor_System_String_System_Byte___CapyKit_IPasswordAlgorithm_System_Object___"> Password(string, byte[], IPasswordAlgorithm, params object[])</h3>
|
|
<p>Constructor.</p>
|
|
<pre><code class="lang-csharp">public Password(string password, byte[] salt, IPasswordAlgorithm algorithm, params object[] args)
|
|
</code></pre>
|
|
<h4 id="parameters">Parameters</h4>
|
|
<p><code>password</code> <a href="https://learn.microsoft.com/dotnet/api/system.string">string</a></p>
|
|
<p>The password to be hashed.</p>
|
|
<p><code>salt</code> <a href="https://learn.microsoft.com/dotnet/api/system.byte">byte</a>[]</p>
|
|
<p>The salt used for encryption.</p>
|
|
<p><code>algorithm</code> <a href="CapyKit.IPasswordAlgorithm.html">IPasswordAlgorithm</a></p>
|
|
<p>The algorithm used for password encryption.</p>
|
|
<p><code>args</code> <a href="https://learn.microsoft.com/dotnet/api/system.object">object</a>[]</p>
|
|
<p>A variable-length parameters list containing arguments to include for the <code class="paramref">algorithm</code>.</p>
|
|
<h2 id="properties">Properties</h2>
|
|
<h3 id="CapyKit_Password_Algorithm"> Algorithm</h3>
|
|
<p>Gets or sets the algorithm used for password encryption.</p>
|
|
<pre><code class="lang-csharp">public IPasswordAlgorithm Algorithm { get; }
|
|
</code></pre>
|
|
<h4 id="property-value">Property Value</h4>
|
|
<p><a href="CapyKit.IPasswordAlgorithm.html">IPasswordAlgorithm</a></p>
|
|
<h3 id="CapyKit_Password_Hash"> Hash</h3>
|
|
<p>Gets or sets the hash of the password.</p>
|
|
<pre><code class="lang-csharp">public byte[] Hash { get; }
|
|
</code></pre>
|
|
<h4 id="property-value-1">Property Value</h4>
|
|
<p><a href="https://learn.microsoft.com/dotnet/api/system.byte">byte</a>[]</p>
|
|
<h3 id="CapyKit_Password_Pbkdf2Algorithm"> Pbkdf2Algorithm</h3>
|
|
<p>Gets the preconfigured PBKDF2 algorithm.</p>
|
|
<pre><code class="lang-csharp">public static Pbkdf2Algorithm Pbkdf2Algorithm { get; }
|
|
</code></pre>
|
|
<h4 id="property-value-2">Property Value</h4>
|
|
<p><a href="CapyKit.Pbkdf2Algorithm.html">Pbkdf2Algorithm</a></p>
|
|
<h3 id="CapyKit_Password_Salt"> Salt</h3>
|
|
<p>Gets or sets the salt used for encryption.</p>
|
|
<pre><code class="lang-csharp">public byte[] Salt { get; }
|
|
</code></pre>
|
|
<h4 id="property-value-3">Property Value</h4>
|
|
<p><a href="https://learn.microsoft.com/dotnet/api/system.byte">byte</a>[]</p>
|
|
<h2 id="methods">Methods</h2>
|
|
<h3 id="CapyKit_Password_Equals_System_Object_"> Equals(object?)</h3>
|
|
<p>Determines whether the specified object is equal to the current object.</p>
|
|
<pre><code class="lang-csharp">public override bool Equals(object? obj)
|
|
</code></pre>
|
|
<h4 id="parameters-1">Parameters</h4>
|
|
<p><code>obj</code> <a href="https://learn.microsoft.com/dotnet/api/system.object">object</a>?</p>
|
|
<p>The object to compare with the current object.</p>
|
|
<h4 id="returns">Returns</h4>
|
|
<p><a href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></p>
|
|
<p><a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">true</a> if the specified object is equal to the current object; otherwise, <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">false</a>.</p>
|
|
<h3 id="CapyKit_Password_ToString"> ToString()</h3>
|
|
<p>Returns a string that represents the current object.</p>
|
|
<pre><code class="lang-csharp">public override string ToString()
|
|
</code></pre>
|
|
<h4 id="returns-1">Returns</h4>
|
|
<p><a href="https://learn.microsoft.com/dotnet/api/system.string">string</a></p>
|
|
<p>A string that represents the current object.</p>
|
|
<h2 id="operators">Operators</h2>
|
|
<h3 id="CapyKit_Password_op_Equality_CapyKit_Password_CapyKit_Password_"> operator ==(Password, Password)</h3>
|
|
<pre><code class="lang-csharp">public static bool operator ==(Password a, Password b)
|
|
</code></pre>
|
|
<h4 id="parameters-2">Parameters</h4>
|
|
<p><code>a</code> <a href="CapyKit.Password.html">Password</a></p>
|
|
<p><code>b</code> <a href="CapyKit.Password.html">Password</a></p>
|
|
<h4 id="returns-2">Returns</h4>
|
|
<p><a href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></p>
|
|
<h3 id="CapyKit_Password_op_Inequality_CapyKit_Password_CapyKit_Password_"> operator !=(Password, Password)</h3>
|
|
<pre><code class="lang-csharp">public static bool operator !=(Password a, Password b)
|
|
</code></pre>
|
|
<h4 id="parameters-3">Parameters</h4>
|
|
<p><code>a</code> <a href="CapyKit.Password.html">Password</a></p>
|
|
<p><code>b</code> <a href="CapyKit.Password.html">Password</a></p>
|
|
<h4 id="returns-3">Returns</h4>
|
|
<p><a href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></p>
|
|
|
|
</article>
|
|
|
|
<div class="contribution d-print-none">
|
|
</div>
|
|
|
|
<div class="next-article d-print-none border-top" id="nextArticle"></div>
|
|
|
|
</div>
|
|
|
|
<div class="affix">
|
|
<nav id="affix"></nav>
|
|
</div>
|
|
</main>
|
|
|
|
<div class="container-xxl search-results" id="search-results"></div>
|
|
|
|
<footer class="border-top text-secondary">
|
|
<div class="container-xxl">
|
|
<div class="flex-fill">
|
|
<span>Made with <a href="https://dotnet.github.io/docfx">docfx</a></span>
|
|
</div>
|
|
</div>
|
|
</footer>
|
|
</body>
|
|
</html>
|