# 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