@substrate-system/webcrypto-x3dh
Preparing search index...
symmetric
SymmetricEncryptionInterface
Interface SymmetricEncryptionInterface
Interface for symmetric encryption classes supported by this library.
interface
SymmetricEncryptionInterface
{
decrypt
(
message
:
string
,
key
:
CryptographyKey
,
assocData
?:
string
,
)
:
Promise
<
string
|
Uint8Array
<
ArrayBufferLike
>
>
;
encrypt
(
message
:
string
|
Uint8Array
<
ArrayBufferLike
>
,
key
:
CryptographyKey
,
assocData
?:
string
,
)
:
Promise
<
string
>
;
}
Implemented by
SymmetricCrypto
Index
Methods
decrypt
encrypt
Methods
decrypt
decrypt
(
message
:
string
,
key
:
CryptographyKey
,
assocData
?:
string
,
)
:
Promise
<
string
|
Uint8Array
<
ArrayBufferLike
>
>
Parameters
message
:
string
key
:
CryptographyKey
Optional
assocData
:
string
Returns
Promise
<
string
|
Uint8Array
<
ArrayBufferLike
>
>
encrypt
encrypt
(
message
:
string
|
Uint8Array
<
ArrayBufferLike
>
,
key
:
CryptographyKey
,
assocData
?:
string
,
)
:
Promise
<
string
>
Parameters
message
:
string
|
Uint8Array
<
ArrayBufferLike
>
key
:
CryptographyKey
Optional
assocData
:
string
Returns
Promise
<
string
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Methods
decrypt
encrypt
@substrate-system/webcrypto-x3dh
Loading...
Interface for symmetric encryption classes supported by this library.