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
# 暗号モード: ECB | |
# パディング方式: PKCS5Padding | |
# OpenSSL::Cipher.ciphers で利用可能な暗号方式名を取得可能 | |
# https://docs.ruby-lang.org/ja/latest/class/OpenSSL=3a=3aCipher.html | |
module AesCipher extend self | |
KEY = "Your key" | |
CIPHER = "DES-ECB" | |
def encrypt(text) |
📆 Jun 23-24, 2016
🌏 Web site: http://reddotrubyconf.com/ Twitter: http://twitter.com/reddotrubyconf
💁 Ping me @cheeaun on Twitter or leave a comment below if you found some awesome stuff for #rdrc2016. This gist will be updated whenever there's new stuff.
🕙 Previously, on RedDotRubyConf...