---
Product: Aspose.PDF
Platform: net
Page Type: reference
Canonical URL: https://reference.aspose.org/pdf/net/KeySize
---

# KeySize

## Overview

`KeySize` is a enum in Aspose.PDF FOSS for .NET.

Key strength selector paired with Algorithm to pick the concrete RC4/AES variant used by PdfFileSecurity.

This enumeration defines 3 values: `x40`, `x128`, `x256`.

## Values

| Value | Description |
|-------|-------------|
| `x40` |  |
| `x128` |  |
| `x256` |  |

## See Also

- [Aspose.PDF for .NET — Enterprise API Reference](https://reference.aspose.com/pdf/net/)