> For the complete documentation index, see [llms.txt](https://xoops.gitbook.io/xmf-cookbook/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://xoops.gitbook.io/xmf-cookbook/reference/key/basic.md).

# Basic

The `Xmf\Key\Basic` class is a [Xmf\Key\KeyAbstract](/xmf-cookbook/reference/key/keyabstract.md) implementation that provides a key suitable for HMAC signing.

## new Basic(*$storage*, *$name*)

The StorageInterface instance, *$storage*, handles persistence for this key. The *$name* parameter is the symbolic name of the key to use.

## getSigning()

Returns a key string to be used for signing.

## getVerifying()

Returns a key string to be used for verifying.

## create()

Create the key and store it for use.

Returns true on success, otherwise false.

## kill()

Delete the key from storage.
