Class: OdinCipher
Constructors
new OdinCipher()
new OdinCipher():
OdinCipher
Creates a new OdinCipher instance with default version.
Returns
Defined in
odin.cipher.d.ts:14
Methods
getPeerStatus()
getPeerStatus(
peerId):OdinCryptoPeerStatus
Gets the encryption status of a specific peer. Useful for verifying that E2EE is working correctly with each peer.
Parameters
• peerId: number
The peer ID to check status for.
Returns
The encryption status of the peer.
Defined in
odin.cipher.d.ts:30
setPassword()
setPassword(
password):void
Sets the encryption password for end-to-end encryption. All audio and messages will be encrypted using this password.
Parameters
• password: Uint8Array
The password as a byte array.
Returns
void
Defined in
odin.cipher.d.ts:21