[LF7.1GA4] Document media library file encryption

Tinfo Tinfo, modified 4 Years ago. New Member Posts: 14 Join Date: 5/14/20 Recent Posts

Hi, there is an option on the document media library that permits to encrypt files when they are loaded? In order to make them unreadable if someone obtain access to the disk?

thumbnail
Christoph Rabel, modified 4 Years ago. Liferay Legend Posts: 1555 Join Date: 9/24/09 Recent Posts

Not that I know of.

I think, you could implement your own file store to do something like that.

https://help.liferay.com/hc/en-us/articles/360018176091-Document-Repository-Configuration-

You would need to implement your own add/get methods based on the following class and encrypt/decrypt the input stream.

https://github.com/liferay/liferay-portal/blob/master/modules/apps/portal-store/portal-store-file-system/src/main/java/com/liferay/portal/store/file/system/FileSystemStore.java