we_whisper v0.1.2 WeWhisper.Whisper

This module defines the WeWhisper.Whisper struct

Summary

Functions

Returns a new WeWhisper.Whisper struct given appid string, token string and encoding_aes_key string

Types

appid()
appid :: binary
encoding_aes_key()
encoding_aes_key :: binary
t()
t :: %WeWhisper.Whisper{appid: appid, encoding_aes_key: encoding_aes_key, token: token}
token()
token :: binary

Functions

decrypt_message(whisper, xml_message, timestamp, nonce, signature)
decrypt_message(t, binary, binary, binary, binary) ::
  {:ok, binary} |
  {:error, WeWhisper.Error}

Decrypts message

encrypt_message(whisper, message, nonce, timestamp)
encrypt_message(t, binary, binary, binary) :: binary

Encrypt message

new(appid, token, encoding_aes_key)
new(binary, binary, binary) :: t

Returns a new WeWhisper.Whisper struct given appid string, token string and encoding_aes_key string.