SharedKey256⚓︎
- SharedKey256
- Represents a 256-bit symmetric encryption key.
Extends⚓︎
Constructors⚓︎
new SharedKey256()⚓︎
Creates a shared key from bytes or a hex string.
Parameters⚓︎
| Parameter | Type | Description |
|---|---|---|
sharedKey |
string | Uint8Array<ArrayBufferLike> |
Input string or byte array. |
Returns⚓︎
SharedKey256
Overrides⚓︎
Properties⚓︎
| Property | Modifier | Type | Description | Inherited from |
|---|---|---|---|---|
bytes |
public |
Uint8Array<ArrayBuffer> |
Underlying bytes. | ByteArray.bytes |
NAME |
static |
string |
Byte array name (required because constructor.name is dropped during minification). |
ByteArray.NAME |
SIZE |
static |
number |
Byte size of raw shared key. | - |
Methods⚓︎
toJson()⚓︎
- SharedKey256.toJson
- Returns representation of this object that can be stored in JSON.
Returns⚓︎
string
JSON-safe representation of this object.
Inherited from⚓︎
toString()⚓︎
- SharedKey256.toString
- Returns string representation of this object.
Returns⚓︎
string
String representation of this object