diff --git a/lib/two_factor_authentication/models/two_factor_authenticatable.rb b/lib/two_factor_authentication/models/two_factor_authenticatable.rb index 7d4a330..376038e 100644 --- a/lib/two_factor_authentication/models/two_factor_authenticatable.rb +++ b/lib/two_factor_authentication/models/two_factor_authenticatable.rb @@ -153,7 +153,8 @@ module Devise value: value, key: Devise.otp_secret_encryption_key, iv: iv_for_attribute, - salt: salt_for_attribute + salt: salt_for_attribute, + algorithm: 'aes-256-cbc' } end