File Encryption

From SoftMC-Wiki
Revision as of 06:23, 12 February 2018 by EranKo (talk | contribs) (Created page with "{{Languages}} The following example demonstrates how to encrypt a file. <syntaxhighlight lang="vb"> import_c ENCRYPTFILE(byval as string) as long program ? ENCRYPTFILE ("...")
(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 value 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