Skip to content

Instantly share code, notes, and snippets.

@Gaolz
Gaolz / rdrc2016.md
Created July 2, 2016 01:44 — forked from cheeaun/rdrc2016.md
RedDotRubyConf 2016 links & resources 😘
@Gaolz
Gaolz / aec_cipher.rb
Created September 22, 2017 07:15 — forked from axtutuu/aec_cipher.rb
Ruby DES-ECB & PKCS5Padding で暗号化
# 暗号モード: 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)