String encoder for Spring Security sample.