加密和签名使用不同的密钥对,签名密钥对的私钥用于签名,其对应的公钥用于验证签名。 加密密钥对的公钥用于加密,其对应的私钥用于解密。 1.生成密钥对 /** * 生成RSA随机密钥对(公钥和私钥) * @return */ public static Map<String, String> creat ...
分类:
其他好文 时间:
2020-01-20 09:50:50
阅读次数:
108
1.对查询进行优化,应尽量避免全表扫描,首先应考虑在 where 及 order by 涉及的列上建立索引。 2.应尽量避免在 where 子句中对字段进行 null 值判断,否则将导致引擎放弃使用索引而进行全表扫描,如: select id from t where num is null 可以在 ...
分类:
数据库 时间:
2020-01-20 00:29:45
阅读次数:
89
<el-input :ref="item.meta.system_id" v-model="temp[item.meta.valueKey]" clearable oninput="if(value.length>18)value=value.slice(0,18)" :disabled="item ...
分类:
其他好文 时间:
2020-01-19 12:16:27
阅读次数:
609
这个呢,是我在写一个爬虫时遇到的问题,关于问题的描述是这样的,我有一个字符串,想得到其中的一段,即截取其中的一部分所用,方法如下: 使用substring(start,stop)方法,在W3中对于这个函数的解释链接:https://www.w3school.com.cn/js/jsref_subst ...
分类:
其他好文 时间:
2020-01-18 16:26:48
阅读次数:
71
Given a string, find the length of the longest substring without repeating characters. Example 1: Input: "abcabcbb" Output: 3 Explanation: The answer ...
分类:
其他好文 时间:
2020-01-17 15:08:09
阅读次数:
93
SerialPort sp1 = new SerialPort(); getBloodPressur(); public void getBloodPressur() { try { string[] str = SerialPort.GetPortNames(); if (str == null) ...
分类:
其他好文 时间:
2020-01-17 13:42:36
阅读次数:
105
private void btnSave_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(txt_FilePath.Text) || txt_FilePath.Text.Trim().Substring(txt_FilePat ...
分类:
其他好文 时间:
2020-01-17 11:51:00
阅读次数:
64
截取字符串,在java语言中的用法 1、 public String substring(int beginIndex) 返回一个新字符串,它是此字符串的一个子字符串。该子字符串始于指定索引处的字符,一直到此字符串末尾。 参数:beginIndex - 开始处的索引(包括), 返回:指定的子字符串, ...
分类:
其他好文 时间:
2020-01-16 00:40:59
阅读次数:
124
来源 https://leetcode cn.com/problems/longest substring without repeating characters/ 题目描述 给定一个字符串,请你找出其中不含有重复字符的?最长子串?的长度。 示例?1: 输入: "abcabcbb" 输出: 3 解 ...
分类:
编程语言 时间:
2020-01-15 19:47:02
阅读次数:
82
最长的回文子串。题意是给一个字符串,请输出其中最长的回文子串。例子 Example 1: Input: "babad" Output: "bab" Note: "aba" is also a valid answer. Example 2: Input: "cbbd" Output: "bb" 这个 ...
分类:
其他好文 时间:
2020-01-15 09:23:40
阅读次数:
66