Javaã®ããã·ã¥å¤ãæ±ããããã«ãjava.security.MessageDigestã¯ã©ã¹ã使ã£ãããããã ã¶ã£ã¡ãããããªãæ±ããã®ã«ä¾å¤å¦çã ã¼ãã¢ã«ã´ãªãºã ã¯ï½ã ã¼ãªã㦠é¢åãããã®ã§ã©ããã³ã°ãã¦ã¿ãã packege mbs.security; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; /** * ããã·ã¥å¤çææ©è½ãæä¾ * @auther Mahny */ public class Encrypter{ /** * ã¡ãã»ã¼ã¸ãã¤ã¸ã§ã¹ãï¼MD5 */ public static final String ALG_MD5= "MD5"; /** * ã¡ãã»ã¼ã¸ãã¤ã¸ã§ã¹ãï¼SHA-1 */ public static final String
{{#tags}}- {{label}}
{{/tags}}