Java Code Examples for com.ruoyi.common.utils.security.Md5Utils#hash()
The following examples show how to use
com.ruoyi.common.utils.security.Md5Utils#hash() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: FileUploadUtils.java From supplierShop with MIT License | 5 votes |
/** * 编码文件名 */ private static final String encodingFilename(String fileName) { fileName = fileName.replace("_", " "); fileName = Md5Utils.hash(fileName + System.nanoTime() + counter++); return fileName; }
Example 2
Source File: FileUploadUtils.java From RuoYi-Vue with MIT License | 5 votes |
/** * 编码文件名 */ private static final String encodingFilename(String fileName) { fileName = fileName.replace("_", " "); fileName = Md5Utils.hash(fileName + System.nanoTime() + counter++); return fileName; }
Example 3
Source File: FileUploadUtils.java From RuoYi with Apache License 2.0 | 4 votes |
/** * 编码文件名 */ private static String encodingFilename(String filename) { filename = filename.replace("_", " "); filename = Md5Utils.hash(filename + System.nanoTime() + counter++); return filename; }