プロジェクト

全般

プロフィール

機能 #877 » 0002-service_keeper-Follow-OpenSSL-Cipher-key-requirement.patch

コスモ 虹川, 2016-09-03 23:51

差分を表示:

core/service_keeper.rb
@@service_lock = Monitor.new
def key
UserConfig[:account_crypt_key] ||= SecureRandom.hex end
# enforce 16 bytes key
# SecureRandom.hex(8).bytesize
# => 16
UserConfig[:account_crypt_key] ||= SecureRandom.hex(8) end
# 全てのアカウント情報をオブジェクトとして返す
# ==== Return
(2-2/2)