機能 #877 » 0002-service_keeper-Follow-OpenSSL-Cipher-key-requirement.patch
| 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
|
||