Preparing search index...
The search index is not available
snort.social
snort.social
@snort/system
Nip4WebCryptoEncryptor
Class Nip4WebCryptoEncryptor
Implements
MessageEncryptor
Index
Constructors
constructor
Methods
#import
Key
decrypt
Data
encrypt
Data
get
Shared
Secret
Constructors
constructor
new
Nip4
Web
Crypto
Encryptor
(
)
:
Nip4WebCryptoEncryptor
Returns
Nip4WebCryptoEncryptor
Methods
Private
#import
Key
#import
Key
(
sharedSecet
)
:
Promise
<
CryptoKey
>
Parameters
sharedSecet
:
Uint8Array
Returns
Promise
<
CryptoKey
>
decrypt
Data
decrypt
Data
(
payload
,
sharedSecet
)
:
Promise
<
string
>
Parameters
payload
:
MessageEncryptorPayload
sharedSecet
:
Uint8Array
Returns
Promise
<
string
>
encrypt
Data
encrypt
Data
(
content
,
sharedSecet
)
:
Promise
<
MessageEncryptorPayload
>
Parameters
content
:
string
sharedSecet
:
Uint8Array
Returns
Promise
<
MessageEncryptorPayload
>
get
Shared
Secret
get
Shared
Secret
(
privateKey
,
publicKey
)
:
Uint8Array
Parameters
privateKey
:
string
publicKey
:
string
Returns
Uint8Array
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
constructor
#import
Key
decrypt
Data
encrypt
Data
get
Shared
Secret
snort.social
@snort
shared
system
system-react
system-svelte
system-wasm
system-web
Generated using
TypeDoc