Preparing search index...
The search index is not available
@bicycle-codes/x3dh
@bicycle-codes/x3dh
symmetric
SymmetricCrypto
Class SymmetricCrypto
Default implementation for SymmetricEncryptionInterface.
Implements
SymmetricEncryptionInterface
Index
Constructors
constructor
Methods
decrypt
encrypt
Constructors
constructor
new
SymmetricCrypto
()
:
SymmetricCrypto
Returns
SymmetricCrypto
Methods
decrypt
decrypt
(
message
:
string
,
key
:
CryptographyKey
,
assocData
?:
string
,
)
:
Promise
<
string
|
Buffer
>
Parameters
message
:
string
key
:
CryptographyKey
Optional
assocData
:
string
Returns
Promise
<
string
|
Buffer
>
encrypt
encrypt
(
message
:
string
|
Buffer
,
key
:
CryptographyKey
,
assocData
?:
string
,
)
:
Promise
<
string
>
Parameters
message
:
string
|
Buffer
key
:
CryptographyKey
Optional
assocData
:
string
Returns
Promise
<
string
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
decrypt
encrypt
@bicycle-codes/x3dh
Loading...
Default implementation for SymmetricEncryptionInterface.