---
title: SecretStoreEntry
url: https://www.fastly.com/documentation/reference/compute/sdks/javascript/js-compute/secret-store/class.SecretStoreEntry/
---

**Kind:** Class  
**Module:** [secret-store](https://www.fastly.com/documentation/reference/compute/sdks/javascript/js-compute/secret-store/)  
**Package:** @fastly/js-compute 4.0.1  
**Source:** https://github.com/fastly/js-compute-runtime/blob/70cf30af4e657879b2d1e7eafab880e39e3a3f7d/types/secret-store.d.ts#L69

## Methods

### plaintext

**Source:** https://github.com/fastly/js-compute-runtime/blob/70cf30af4e657879b2d1e7eafab880e39e3a3f7d/types/secret-store.d.ts#L76

```javascript
plaintext(): string
```

Get the plaintext value of the secret as a UTF-8 string.

**Note**: Using this method will bring the secret into user memory — avoid using it
when possible, instead passing the `SecretStoreEntry` directly.

**Returns**

`string`

### rawBytes

**Source:** https://github.com/fastly/js-compute-runtime/blob/70cf30af4e657879b2d1e7eafab880e39e3a3f7d/types/secret-store.d.ts#L85

```javascript
rawBytes(): Uint8Array<ArrayBuffer>
```

Get the raw byte value of the secret as a Uint8Array.

**Note**: Using this method will bring the secret into user memory — avoid using it
when possible, instead passing the `SecretStoreEntry` directly.

**Returns**

`Uint8Array<ArrayBuffer>`
