# file-encryption

## Encrypted file transfer

## Certutil

**Encode**

```
certutil -encode input_file encoded_output
```

**Decode**

```
certutil -decode encoded_file decoded_output
```

## Invoke-aecEncryption

> &#x20;[Invoke-AESEncryption.ps1](https://www.powershellgallery.com/packages/DRTools/4.0.2.3/Content/Functions/Invoke-AESEncryption.ps1)

**Import it**

```
Import-Module .\Invoke-AESEncryption.ps1
```

**Encryption file**

```
Invoke-AESEncryption -Mode Encrypt -Key "p4ssw0rd" -Path .\scan-results.txt
```
