![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
随笔
sunzhongjiang001
这个作者很懒,什么都没留下…
展开
-
RSA加密
import javax.crypto.Cipher; import java.security.*; import java.security.interfaces.RSAPrivateKey; import java.security.interfaces.RSAPublicKey; import java.security.spec.PKCS8EncodedKeySpec; import java.security.spec.X509EncodedKeySpec; import org.apache原创 2021-02-19 11:18:30 · 100 阅读 · 0 评论 -
简单的手机号判断正则表达式
简单的手机号判断正则表达式 不多说,直接上代码 表达式 String regex = "^((13[0-9])|(14[5|7])|(15([0-3]|[5-9]))|(17[013678])|(18[0,2,3,5-9]))\\d{8}$"; main 方法测试 public static void main(String[] args) { String phone = "13123456789"; String regex = "^((13[0-9])|原创 2020-10-16 18:15:27 · 865 阅读 · 1 评论