This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'openssl' | |
# Don't use this | |
module Encryption | |
def self.cipher(mode) | |
cipher = OpenSSL::Cipher::Cipher.new("aes-256-ecb") | |
cipher.send mode | |
cipher.key = "ABANDON ALL HOPE YE WHO USE ECB!" | |
cipher.padding = 0 | |
cipher |