lib/symmetric/encryption.rb in symmetric-encryption-0.3.0 vs lib/symmetric/encryption.rb in symmetric-encryption-0.3.1
- old
+ new
@@ -214,12 +214,12 @@
}
end
else
# Migrate old format config
- raise "Missing mandatory config parameter 'private_rsa_key'" unless cfg['private_rsa_key'] = config['private_rsa_key']
+ raise "Missing mandatory config parameter 'private_rsa_key'" unless cfg[:private_rsa_key] = config['private_rsa_key']
cfg[:ciphers] = [ {
- :cipher => cipher['cipher'] || default_cipher,
+ :cipher => default_cipher,
:key_filename => config['symmetric_key_filename'],
:iv_filename => config['symmetric_iv_filename'],
} ]
end
\ No newline at end of file