79755095

Date: 2025-09-03 21:24:22
Score: 1
Natty:
Report link

It happens that in ActiveRecord when does the decrypt it passes another key_provider, which is the deterministic key, so using this it works:

ActiveRecord::Encryption::Encryptor.new.decrypt(cipher, key_provider: ActiveRecord::Encryption::DeterministicKeyProvider.new(ActiveRecord::Encryption.config.deterministic_key))
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Caio Felipe Motta Ladeia