---
id: tcipher
title: TCipher
sidebar_label: TCipher
---
Cipher base type.
## Methods
### `Method KeySize:Int(size:Int) Abstract`
Determines the appropriate key size for size.
Rounds the input keysize size down to the next appropriate key size for use with the cipher.
#### Returns
The appropriate key size, or -1 if the provided size was not acceptable.
### `Method Name:String() Abstract`
Returns the name of the cipher.
### `Method Done() Abstract`
When you are finished with a cipher you can de–initialize it with the done method.
## Functions
### `Function ListCiphers:String[]()`
Returns a list of all registered ciphers.
### `Function Find:TCipher(name:String)`
Gets the cipher index of the given name.
#### Returns
the index or -1 if not found.