You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
459 B
22 lines
459 B
package com.fr.password.service; |
|
|
|
import com.fr.password.tool.SecurityToolbox; |
|
import org.springframework.stereotype.Service; |
|
|
|
/** |
|
* desc |
|
* |
|
* @author Anner |
|
* created on 2020-10-19 |
|
*/ |
|
@Service |
|
public class PasswordService { |
|
|
|
public String sha(String plainText) { |
|
return SecurityToolbox.getInstance().sha256(plainText); |
|
} |
|
|
|
public String sm3(String plainText) { |
|
return SecurityToolbox.getInstance().sm3Encrypt(plainText); |
|
} |
|
} |