Class: DiscordStore::Cipher::Null

Inherits:
Object
  • Object
show all
Defined in:
lib/discord_store/cipher.rb

Overview

Passthrough. Writes readable JSON into the channel: good for a log you want humans to read in the Discord client, wrong for anything else.

Instance Method Summary collapse

Instance Method Details

#binary_overhead ⇒ Object



57
# File 'lib/discord_store/cipher.rb', line 57

def binary_overhead = 0

#encrypting? ⇒ Boolean

Returns:

  • (Boolean)


55
# File 'lib/discord_store/cipher.rb', line 55

def encrypting? = false

#open(ciphertext, aad: nil) ⇒ Object



52
# File 'lib/discord_store/cipher.rb', line 52

def open(ciphertext, aad: nil) = ciphertext.to_s

#open_binary(ciphertext, aad: nil) ⇒ Object



54
# File 'lib/discord_store/cipher.rb', line 54

def open_binary(ciphertext, aad: nil) = ciphertext.to_s

#overhead ⇒ Object



56
# File 'lib/discord_store/cipher.rb', line 56

def overhead = 0

#seal(plaintext, aad: nil) ⇒ Object



51
# File 'lib/discord_store/cipher.rb', line 51

def seal(plaintext, aad: nil) = plaintext.to_s

#seal_binary(plaintext, aad: nil) ⇒ Object



53
# File 'lib/discord_store/cipher.rb', line 53

def seal_binary(plaintext, aad: nil) = plaintext.to_s