Patch Number |
Ticket Number |
Change type |
PN5_50471 |
|
Enhanchment |
1. Description
Add extension to the CREATE-FILE command to enable file encryption.
Encryption arguments are as follows:
ENCRYPTED=TRUE ALGORITHM=<<algorithm>> KEY=<<decrypt key>>
Supported file types:
j4, HASH4, HASHP (jPlus), UD
Supported encryption algorithms:
RC2, BASE64, DES, 3DES, BLOWFISH, AES
Encryption modes:
Default: use internal encryption : ENCRYPTED=TRUE User: Use a defined method and key : ENCRYPTED=TRUE ALGORITHM=xxx KEY=yyy
e.g.
CREATE-FILE TEST ENCRYPTED=TRUE ALGORITHM=BLOWFISH KEY=12344567889 1 1 CREATE-FILE TEST ENCRYPTED=TRUE 1 1
2. Previous Release Behavior
N/A
3. Current Release Behavior
You can opt to use the default encryption method and internal encryption key by not specifying any algorithm or key:
CREATE-FILE TEST ENCRYPTED=TRUE 1 1 * If UD file types are used, the flags to say this file is encrypted are stored in the directory in the [.jbase_header] record, deleting this will stop the file from decrypting.
Optionally specify your own:
CREATE-FILE TEST ENCRYPTED=TRUE ALGORITHM=BLOWFISH KEY=12344567889 1 1
If user specifies their own key, an encrypted version is stored in the ]K file, the above example will generate:
TEST TEST]D TEST]K
no data in the file or dictionary can be decrypted without the ]K file being accessible.
- key files have to be used with the file they where created with.