skip to main content

Files Management : Indexed Files : JISAM : Encryption

Encryption
JISAM supports the encryption of the data file. The encryption is activated by the WITH ENCRYPTION clause in FILE-CONTROL.
An example of encrypted file:
select arc assign to "arc"
       organization indexed
       with encryption
       record arc-k.
The data is encrypted using a key provided through the configuration. The configuration property iscobol.file.encryption.key must be set to a value different from spaces, otherwise a file mismatch error is raised.
If an encrypted file is opened for input or i-o with the wrong encryption key, then a file corrupt error is raised.
If the encryption key is not set in the configuration, opening an encrypted file produces a 9X status.

Copyright (c) 2017 Veryant
Contact us
Please share your comments on this manual or on any
Veryant product documentation with the email button at the top left