module Meshchat::Encryption
Constants
- DEFAULT_ENCRYPTOR
Public Instance Methods
current_encryptor()
click to toggle source
# File lib/meshchat/encryption.rb, line 20 def current_encryptor @current_encryptor || DEFAULT_ENCRYPTOR end
decrypt(*args)
click to toggle source
# File lib/meshchat/encryption.rb, line 24 def decrypt(*args) current_encryptor.decrypt(*args) end
encrypt(*args)
click to toggle source
# File lib/meshchat/encryption.rb, line 28 def encrypt(*args) current_encryptor.encrypt(*args) end
encryptor=(klass)
click to toggle source
# File lib/meshchat/encryption.rb, line 16 def encryptor=(klass) @current_encryptor = klass end