Encrypting or decrypting a file

One of the more practical uses for the Cryptographic Coprocessor on your system running the IBM i operating system is encrypting and decrypting data files.

You can use one of these cryptographic methods to protect a file:

  • Treat the whole file as a string of bytes (which is the method the program example uses).
  • Encrypt each record or part of each record.

Write your own program protect data in many different formats, not just data files.