Closed (fixed)
Project:
Encrypt
Version:
4.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
15 Jun 2016 at 19:00 UTC
Updated:
5 Aug 2026 at 03:00 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
eyal shalevThis is the patch I used to execute the proposed solution.
Comment #3
rlhawkI think this is an excellent idea. It will require coordination with modules that provide encryption methods, of course, but that should not be too bad. Making an API change such as this should be possible, since Encrypt 8.x-3.x is still in an alpha release state.
Comment #4
gambryI agree having access to the Key object will open to a range of possibilities. However I see even more powerful giving access to the EncryptionProfile entity, rather than the Key only.
From the EncryptionProfile a developer will be able to access the Key, any additional custom option the profile may have, etc.
This issue is really important, but I think the coordination mentioned in #3 is a big blocker.
Why don't we inject the EncryptionProfile argument to the EncryptionMethod constructor?
It will require a custom refactoring of the plugin manager, but the work shouldn't be massive and - unless plugin definitions don't override the construct - no coordination is needed.
Comment #6
ptmkenny commented3.x has been released, so this would have to be moved to 4.x. Also, the patch no longer applies to 3.x-dev, so marking "Needs work."
Comment #7
ptmkenny commentedWe could make this API change in Encrypt 4.0.
Comment #8
ptmkenny commentedComment #11
ptmkenny commented