@textile/hub > PrivateKey > decrypt
PrivateKey.decrypt() method
Decrypt the given ciphertext using this private key.
Signature:
decrypt(ciphertext: Uint8Array): Promise<Uint8Array>;
Parameters
| Parameter | Type | Description | 
|---|---|---|
| ciphertext | Uint8Array | The input ciphertext (encrypted data) | 
Returns:
Promise<Uint8Array>