# Encrypt Method Encrypts the given password using a PBKDF2 algorithm. ## Definition **Namespace:** CapyKit **Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+6cdd805be49c3b769a116584ea6904955ecd820d **C#** ``` C# public byte[] Encrypt( string password, params Object[] args ) ``` **VB** ``` VB Public Function Encrypt ( password As String, ParamArray args As Object() ) As Byte() ``` **C++** ``` C++ public: virtual array^ Encrypt( String^ password, ... array^ args ) sealed ``` **F#** ``` F# abstract Encrypt : password : string * args : Object[] -> byte[] override Encrypt : password : string * args : Object[] -> byte[] ``` #### Parameters
  String
The plaintext password.
  Object[]
Additional arguments for the encryption process, specifically
  1. salt
  2. length
  3. iterations
#### Return Value Byte[] A byte array with the hashed *password*. #### Implements IPasswordAlgorithm.Encrypt(String, Object[]) ## See Also #### Reference Pbkdf2Algorithm Class CapyKit Namespace