dbencrypt#

EncryptionDecryption.dbencrypt(keya='', keyb='', datatype='', num1='', num2='', inc='', **kwargs)#

Controls encryption of material data in the database file.

Mechanical APDL Command: /DBENCRYPT

Parameters:
keyastr

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.

keybstr

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.

datatypestr

Type of data to encrypt. Must be set to MAT for material data.

num1str

Encrypt materials from material number NUM1 to NUM2 (defaults to NUM1 ) in steps of INC (defaults to 1). If NUM1 = ALL (default), NUM2 and INC are ignored.

num2str

Encrypt materials from material number NUM1 to NUM2 (defaults to NUM1 ) in steps of INC (defaults to 1). If NUM1 = ALL (default), NUM2 and INC are ignored.

incstr

Encrypt materials from material number NUM1 to NUM2 (defaults to NUM1 ) in steps of INC (defaults to 1). If NUM1 = ALL (default), NUM2 and INC are ignored.

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 set NUM1 to ALL. ( NUM2 and INC are not used.)

For a two-level encryption, specify both KeyA and KeyB. Also specify NUM1, NUM2, and INC 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.