encryptingURL
R2026bDescription
returns a URL to the file that url = encryptingURL(filepath,passwordID)filepath specifies. Use this URL in a
MATLAB® I/O function to write or read AES-256-GCM encrypted data with the secret
specified by passwordID.
Examples
Input Arguments
Output Arguments
Tips
Some MATLAB I/O functions, such as
imreadandimwrite, create unencrypted temporary files that can be exposed during runtime. Functions that do not create temporary files include:load,savefopen,fread,fwrite,fclosefilereadaudioread,audiowriteparquetread,parquetwritexmlread,xmlwrite
If the secret value changes after
encryptingURLis called, callencryptingURLagain to update the encryption key.The syntax
dir(encryptingURL(...))is not supported.
Version History
Introduced in R2026b