Manage Learn to apply best practices and optimize your operations.

Simple Number Encryption/Decryption

Takes a number field and encrypts it seeded by the creation date. Useful for
basic field level encryption of sensitive date such as Salaries, bids, or
contract amounts. Where you need to hide/disguise the field value from views
and document field properties.

Remember.. it's not fool proof. Anyone who could get this code could write an
agent to view the encrypted numbers. But hey.. it's better than nothing in
most cases.

Any questions can be emailed to me at:
To Encrypt:
Seconds := @Second(@Created);
Minutes := @Minute(@Created);
Hour := @Hour(@Created);
@Sqrt(((NumberField * Seconds) + Hour)) * Minutes

To Decrypt:
Seconds := @Second(@Created);
Minutes := @Minute(@Created);
Hour := @Hour(@Created);
(@Power((EncryptedNumber / Minutes);2)-Hour)/Seconds

Dig Deeper on Domino Resources - Part 5

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.




  • iSeries tutorials's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...