# Functions ## keccakAsU8a ▸ **keccakAsU8a**(value: *`Buffer` | `Uint8Array` | `string`*): `Uint8Array` *Defined in [keccak/asU8a.ts:21](https://github.com/polkadot-js/common/blob/420f807/packages/util-crypto/src/keccak/asU8a.ts#L21)* *__name__*: keccakAsU8a *__summary__*: Creates a keccak Uint8Array from the input. *__description__*: From either a `string` or a `Buffer` input, create the keccak and return the result as a `Uint8Array`. *__example__*: ```javascript import { keccakAsU8a } from '@polkadot/util-crypto'; keccakAsU8a('123'); // => Uint8Array ``` **Parameters:** | Name | Type | | ------ | ------ | | value | `Buffer` | `Uint8Array` | `string` | **Returns:** `Uint8Array` ___