Skip to main content
Version: 2.25.x.x Java 8 ELS

crypto

crypto:digest

byte[] crypto:digest(byte[] data, string algorithm)

Creates a cryptographic message digest of some payload data. The algorithm can be configured. The available algorithms depend on the Java runtime. MD5, SHA-1 and SHA-256 are available everywhere.

#{crypto:digest(in.user.passwordBytes, 'SHA-1')}