|
I'm not sure you want to use a trigger for this type of
application. You could certainly encrypt the field using a trigger
on update/write, but the read trigger doesn't allow you to alter the
buffer delivered to the application (at least the last I looked) and
so you would still need application awareness to decrypt the data.
The APIs and the cipher instruction, where they overlap, are
accessing common function found in the Licensed Internal Code. If
it was me, I would tend to go the Qc3 API route only because the
APIs provide quite a bit more in the way of documentation. I
generally use MI only when there is no suitable alternative. And
while IBM supports the use of both MI and System APIs, the support
tends to be more readily at hand with APIs as MI just isn't used all that much.
SQL could certainly be used for this. But if you are not
currently using SQL I'm not sure that I would change over to it for
a one time application enhancement.
Bruce
http://www.brucevining.com/
Providing integrated solutions for the System i user community
Mike Cunningham <mcunning@xxxxxxx> wrote:
True, and that is where I might put it since I do want it to be
always encrypted but I still need to figure out if I do the trigger
with _cipher or Qc3 APIs. I don't think the SQL method would work in a trigger
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.