The application discloses a kind of based on AES-GCM implementation three-dimensional model
software online
encryption method and device.The method includes the following steps: first, obtain the front three-dimensional model
software data, then format, then generate initial
fingerprint code;Then using the AES key and
initialization vector IV based on AES-GCM, initial
fingerprint code is encrypted, and encrypted
fingerprint code and
authentication label are generated;AES key is obtained by crypto.subtle.generateKey encapsulation function;AES key,
initialization vector IV and
authentication label are all stored in the local file of front end;AES key,
initialization vector IV and
authentication label are called from local file, and encrypted fingerprint code is decrypted to obtain decrypted fingerprint code;Finally, the decrypted fingerprint code is compared with initial fingerprint code, to obtain the
authorization of front three-dimensional model
software data.The method can be completely based on front end without back end to carry out safe AES-GCM
encryption and decryption, guarantee the
data security of three-dimensional model software.