機能 #877 » 0002-service_keeper-Follow-OpenSSL-Cipher-key-requirement.patch
core/service_keeper.rb | ||
---|---|---|
15 | 15 |
@@service_lock = Monitor.new |
16 | 16 | |
17 | 17 |
def key |
18 |
UserConfig[:account_crypt_key] ||= SecureRandom.hex end |
|
18 |
# enforce 16 bytes key |
|
19 |
# SecureRandom.hex(8).bytesize |
|
20 |
# => 16 |
|
21 |
UserConfig[:account_crypt_key] ||= SecureRandom.hex(8) end |
|
19 | 22 | |
20 | 23 |
# 全てのアカウント情報をオブジェクトとして返す |
21 | 24 |
# ==== Return |