File Encyption

From SoftMC-Wiki
Revision as of 12:28, 11 February 2018 by EranKo (talk | contribs) (created)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Language: English

The following example demonstrates how to encrypt a file.


import_c ENCRYPTFILE(byval as string) as long

program

? ENCRYPTFILE ("MYFILE.LIB")

end program '

return vale form the function ENCRYPTFILE:

0 - encryption passed ok

1 - file is already encrypted

2 - can't open file (file doesn't exist)

3 - can't close file

4 - can't read from file

5 - can't write to file

6 - can't flush file

7 - can't delete file

8 - can't rename file