CapyKit/Documentation/Help/M_CapyKit_IPasswordAlgorithm_Encrypt.md

41 lines
1.1 KiB
Markdown
Raw Normal View History

# Encrypt Method
Encrypts the given password using a defined algorithm.
## Definition
**Namespace:** <a href="N_CapyKit">CapyKit</a>
2024-04-21 01:20:26 -05:00
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
**C#**
``` C#
byte[] Encrypt(
string password,
params Object[] args
)
```
**F#**
``` F#
abstract Encrypt :
password : string *
args : Object[] -> byte[]
```
#### Parameters
<dl><dt>  <a href="https://learn.microsoft.com/dotnet/api/system.string" target="_blank" rel="noopener noreferrer">String</a></dt><dd>The plaintext password.</dd><dt>  <a href="https://learn.microsoft.com/dotnet/api/system.object" target="_blank" rel="noopener noreferrer">Object</a>[]</dt><dd>Additional arguments for the encryption process, such as salt and length.</dd></dl>
#### Return Value
<a href="https://learn.microsoft.com/dotnet/api/system.byte" target="_blank" rel="noopener noreferrer">Byte</a>[]
A byte array with the hashed *password*.
## See Also
#### Reference
<a href="T_CapyKit_IPasswordAlgorithm">IPasswordAlgorithm Interface</a>
<a href="N_CapyKit">CapyKit Namespace</a>