dbencrypt#
- EncryptionDecryption.dbencrypt(keya='', keyb='', datatype='', num1='', num2='', inc='', **kwargs)#
Controls encryption of material data in the database file.
Mechanical APDL Command: /DBENCRYPT
- Parameters:
- keya
str
Encryption key A (32-character maximum). This key is used to encrypt the data in a one-level encryption or to control access to the data in a two-level encryption.
- keyb
str
Encryption key B (32-character maximum). This key is used to encrypt the data in a two-level encryption. If
KeyB
is not specified, a one-level encryption is used to encrypt the data.- datatype
str
Type of data to encrypt. Must be set to MAT for material data.
- num1
str
Encrypt materials from material number
NUM1
toNUM2
(defaults toNUM1
) in steps ofINC
(defaults to 1). IfNUM1
= ALL (default),NUM2
andINC
are ignored.- num2
str
Encrypt materials from material number
NUM1
toNUM2
(defaults toNUM1
) in steps ofINC
(defaults to 1). IfNUM1
= ALL (default),NUM2
andINC
are ignored.- inc
str
Encrypt materials from material number
NUM1
toNUM2
(defaults toNUM1
) in steps ofINC
(defaults to 1). IfNUM1
= ALL (default),NUM2
andINC
are ignored.
- keya
Notes
This command encrypts data in the database file. It must be issued before saving the database file ( save command).
For a one-level encryption, specify only
KeyA
and setNUM1
to ALL. (NUM2
andINC
are not used.)For a two-level encryption, specify both
KeyA
andKeyB
. Also specifyNUM1
,NUM2
, andINC
as needed.For more information about using dbencrypt in the encryption/decryption procedure, see Encrypting Material Data dbdecrypt command.
This command is valid in any processor.