mirror of
				https://github.com/dromara/RuoYi-Vue-Plus.git
				synced 2025-11-04 16:23:42 +08:00 
			
		
		
		
	add 新增 SecurityUtils.encryptBySm3 加密方法
This commit is contained in:
		@@ -230,4 +230,14 @@ public class EncryptUtils {
 | 
				
			|||||||
        return SecureUtil.sha256(data);
 | 
					        return SecureUtil.sha256(data);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    /**
 | 
				
			||||||
 | 
					     * sm3加密
 | 
				
			||||||
 | 
					     *
 | 
				
			||||||
 | 
					     * @param data 待加密数据
 | 
				
			||||||
 | 
					     * @return 加密后字符串, 采用Hex编码
 | 
				
			||||||
 | 
					     */
 | 
				
			||||||
 | 
					    public static String encryptBySm3(String data) {
 | 
				
			||||||
 | 
					        return SmUtil.sm3(data);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user