AccountService { protected static String hashPassword(String password) { return EncodeUtil.encodeBase64(HashUtil.sha1(password)); }  @PostConstruct void init(); @Transactional(readOnly = true) String login(String email, String password); void logout(String token); Account getLoginUser(String token); @Transactional void register(String email, String name, String password);  }
@Test public void hash() throws Exception { System.out.println("hashPassword:" + AccountService.hashPassword("springside")); }