Encrypting Messages
CXIO messages can be easily encrypted to protect information, and this is achieved using the lock directive as explained within this guide.
In the example below, we are creating an encrypted cxio file named "confidential.cxio". The AES (Advanced Encryption Standard) encryptor will be used as specified by lock directive, and properties including password, salt and hash are set as shown.
info confidential from topsecret recv manwithbriefcase body item original_recipe as "2⁄3 tablespoon salt, 1⁄2 tablespoon thyme,1⁄2 tablespoon basil,1⁄3 tablespoon oregano,1 tablespoon celery salt,1 tablespoon black pepper,1 tablespoon dry mustard, 4 tablespoons paprika, 2 tablespoons garlic salt, 1 tablespoon ground ginger, 3 tablespoons white pepper" ends into disk path "c:\cxio\confidential.cxio" lock AES @key: "password123" @mode: "cbc" @hash: "sha1" @salt: "aselrias38490a32" @vector: "8947az34awl34kjq" @size: 256 @iterations: 2 ends ends ends