Skip to content

Security

Source-IV allows you to create protected (encrypted) programs. This provides you with Source code security for programs or systems you are developing. This prevents users from altering the program. It also prevents illegal copying of software. For more information, see ENCRYPT and PSAVE in the Thoroughbred Basic Reference Manual.

There are two types of security within Source-IV:

  • Source libraries and Source documents can be protected using passwords. For more information, see the section on Creating a New Source earlier in this document.
  • Source-IV can compile Source documents and save them as protected programs. For more information, see ENCRYPT and PSAVE in the Thoroughbred Basic Reference Manual.

The sections below describe protected program attributes.

Programs in the Protected form are permanent. Once you compile a program as Protected, you cannot make it listable or import it unless the password is known. You cannot convert Protected programs to listable programs. Recompile the Source into a listable program.

You cannot import a protected program.

The following Basic commands can be executed on a protected program:

LOAD

RUN The following Basic commands cannot be executed on a protected program:

EDIT

ESCAPE

LIST

SAVE

DELETE

Note:
The LIST command cannot be executed on program lines greater than 100.

A protected Source should not contain the following Basic commands:

ESCAPE

SETTRACE

DELETE

Do not use the following Basic Utilities on protected programs:

*CPSD

*HPSD

*IPSD

*PPSD

*QPSD

*SPSD

*TPSD

For more information, see ENCRYPT, PSAVE, and LOAD in the Thoroughbred Basic Reference Manual.

Mark the library and/or Source with the reserved password NOL (Protected). When used on a library, this password allows you to compile all Sources in the library as Protected. When using passwords, the Source password overrides the library password. This allows you to have a Protected library, but specify certain Sources as listable using the password LON (Listable).

In your Source document enter PASSWORD IS “password” and when the Source is compiled, the program will be protected using this password.

Both NOL and LON are always active and do not affect accessing libraries or Sources in the same way that standard passwords do.

Note:
The library password and Source password are separate and apart from the protected password.

You may use other passwords, but they affect the ability to load or edit Source documents. The password restricts access to the library or Source documents and the system compiles programs as Listable even if library or Source passwords are present (unless NOL has been specified for the password).

From the Source-IV, version 8.9.1. Open this page in the PDF