Jasypt: Encryption on Java

Jasypt is a java library which allows the developer to add basic encryption capabilities to his/her projects with minimum effort, and without the need of having deep knowledge on how cryptography works.

  • High-security, standards-based encryption techniques, both for unidirectional and bidirectional encryption. Encrypt passwords, texts, numbers, binaries...
  • Transparent integration with Hibernate.
  • Suitable for integration into Spring-based applications and also transparently integrable with Spring Security.
  • Integrated capabilities for encrypting the configuration of applications (i.e. datasources).
  • Specific features for high-performance encryption in multi-processor/multi-core systems.
  • Open API for use with any JCE provider.

Copied from: http://www.jasypt.org
Adrià, I hope this help you in near future. And is Licensed under Apache Software License.

Changing Admin user in Alfresco 3.2 +...


...when you have no other administrator.

This is one of the ways to change Alfresco administrator, but there are another using groups.

Locate tomcat/shared/classes/alfresco/alfresco-global.properties

Add this property:

alfresco_user_store.adminusername=admin

And replace admin identifier by other user identifier.

Reboot Alfresco and login with new "admin" user.

How to transform all docs to PDF/A-1 format in Alfresco

Look for alfresco\WEB-INF\classes\alfresco\mimetype\openoffice-document-formats.xml file.

<document-format>
<name>Portable Document Format</name>
<mime-type>application/pdf</mime-type>
<file-extension>pdf</file-extension>
<export-filters>
<entry>
<family>Presentation</family>
<string>impress_pdf_Export</string>
</entry>
<entry>
<family>Spreadsheet</family>
<string>calc_pdf_Export</string>
</entry>
<entry>
<family>Text</family>
<string>writer_pdf_Export</string>
</entry>
</export-filters>
<!-- ADDED TO TRANSFORM TO PDF/A-1 -->
<export-options>
<entry>
<string>SelectPdfVersion</string>
<int>1</int>
</entry>
</export-options>
<!-- ADDED TO TRANSFORM TO PDF/A-1 -->
</document-format>


With this change, all transformation to PDF will be exported to format PDF/A-1.

Thanks to: http://forums.alfresco.com/en/viewtopic.php?t=6336
OpenOffice Parameters: http://wiki.services.openoffice.org/wiki/API/Tutorials/PDF_export