Function Entry: DOSENCRYPT

← Prev | ↑ Chapter | Next → | Index | Symbols

Function Entry: DOSENCRYPT

Name

`dosencrypt`

Class

BricsCAD DOSLib Function

Syntax

(dos_encrypt filename password)

Arguments and Values

Arguments are described in the vendor page; see Source Notes.

Description

Encrypts and Decrypts the specified file filename using password; password is a string of 4…512 characters. Note 1 : without the correct password, an encrypted file can not be decrypted ! Note 2 : starting with V26, the existing (dosencrypt) function uses a new encryption algorithm, compatible with original McNeill implementation; therefore, files encrypted using BricsCAD's (dosencrypt) in version V25 (and before) can not be decrypted anymore with V26 (dosencrypt) ! To solve this problem, V26 introduces a new function (dosencryptv25) which uses the "old" V25 (and before) algorithm. Returns filename when successfully encrypted/decrypted, NIL in case of an error (file not found).

Return Values

Vendor-defined; see Source Notes.

Availability

  • AutoCAD 2026: not documented.
  • BricsCAD V26: documented.
  • Status: BricsCAD-only.

Source Notes