Skip to main content
Version: 0.11.x

Class: OdinCipher

Constructors

new OdinCipher()

new OdinCipher(): OdinCipher

Creates a new OdinCipher instance with default version.

Returns

OdinCipher

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

OdinCryptoPeerStatus

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