CapyKit/Documentation/Help/M_CapyKit_IPasswordAlgorithm_Encrypt.md

41 lines
1.1 KiB
Markdown
Raw Permalink Normal View History

# Encrypt Method
Encrypts the given password using a defined algorithm.
## Definition
2024-04-21 03:30:36 -05:00
**Namespace:** <a href="N_CapyKit.md">CapyKit</a>
2024-09-04 19:31:43 -05:00
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.2
**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
2024-04-21 03:30:36 -05:00
<a href="T_CapyKit_IPasswordAlgorithm.md">IPasswordAlgorithm Interface</a>
<a href="N_CapyKit.md">CapyKit Namespace</a>