Skip navigation links
B C F G H M P R S W 

B

BCrypt - Class in cn.songxinqiang.stool.code
BCrypt implements OpenBSD-style Blowfish password hashing using the scheme described in "A Future-Adaptable Password Scheme" by Niels Provos and David Mazieres.
BCrypt() - Constructor for class cn.songxinqiang.stool.code.BCrypt
 

C

checkpw(String, String) - Static method in class cn.songxinqiang.stool.code.BCrypt
Check that a plaintext password matches a previously hashed one
cn.songxinqiang.stool.cmd - package cn.songxinqiang.stool.cmd
 
cn.songxinqiang.stool.code - package cn.songxinqiang.stool.code
 
cn.songxinqiang.stool.conf - package cn.songxinqiang.stool.conf
 
cn.songxinqiang.stool.io - package cn.songxinqiang.stool.io
 
ConfFileUtil - Class in cn.songxinqiang.stool.conf
配置文件操作工具类,实现对配置文件读取、写入
要注意的是,由于忽略了注释和空行,所以即使简单的直接读入再写回,那么也会使得文件内容变化(丢失注释和空行)
对于有节点的文件读取,节点使用[判断,所以任何以[开头的行都会整体作为一个键节点
ConfFileUtil() - Constructor for class cn.songxinqiang.stool.conf.ConfFileUtil
 
crypt_raw(byte[], byte[], int, int[]) - Method in class cn.songxinqiang.stool.code.BCrypt
Perform the central password hashing step in the bcrypt scheme

F

FileIO - Class in cn.songxinqiang.stool.io
与文件读写操作有关的工具类
FileIO() - Constructor for class cn.songxinqiang.stool.io.FileIO
 

G

gensalt(int, SecureRandom) - Static method in class cn.songxinqiang.stool.code.BCrypt
Generate a salt for use with the BCrypt.hashpw() method
gensalt(int) - Static method in class cn.songxinqiang.stool.code.BCrypt
Generate a salt for use with the BCrypt.hashpw() method
gensalt() - Static method in class cn.songxinqiang.stool.code.BCrypt
Generate a salt for use with the BCrypt.hashpw() method, selecting a reasonable default for the number of hashing rounds to apply
getCode(String) - Method in class cn.songxinqiang.stool.code.MD5Code
根据给出的字符串,生成MD5加密字符串,

H

hashpw(String, String) - Static method in class cn.songxinqiang.stool.code.BCrypt
Hash a password using the OpenBSD bcrypt scheme

M

MD5Code - Class in cn.songxinqiang.stool.code
生成md5密码工具类 源代码来自于RFC1321中的示例代码
测试用例:
MD5Code() - Constructor for class cn.songxinqiang.stool.code.MD5Code
 

P

parseFile(File, String) - Static method in class cn.songxinqiang.stool.io.FileIO
读取并处理文本文件中的内容
将文件中的内容按照一行一行的方式读取,然后将每一行按照regex 所指定的正则表达式的方式进行拆分,在返回的列表中会保留文本内容在原文件的顺序,相当于使用类似二维数组的方式返回结果.
注意:regex应该是一个正则表达式,这将直接应用于对 String.split(String)的调用

R

readFileRecordWithNode(String) - Static method in class cn.songxinqiang.stool.conf.ConfFileUtil
读取配置文件的信息,等价于readFileRecordWithNode(new File(file))
readFileRecordWithNode(File) - Static method in class cn.songxinqiang.stool.conf.ConfFileUtil
读取配置文件的信息,以键值对的形式返回读取到的信息
会忽略空行和以COMMENT_LINE_START指定内容开头的注释行, 对于由 NODE_START表示的字符串开头的行,将整行去掉首尾空格后作为键, 值也是一个键值对的形式,这些值都是这个节点之后、下一个节点之前的配置项, 配置项采用 分隔符(SEPARATOR_EQUAL)进行分隔,分隔符前面的部分作为键后面的部分作为值, 数据均采用 LinkedHashMap存储,会保留配置在文件中的记录顺序
readFileRecordWithoutNode(String) - Static method in class cn.songxinqiang.stool.conf.ConfFileUtil
读取配置文件的信息,等价于readFileRecordWithoutNode(new File(file))
readFileRecordWithoutNode(File) - Static method in class cn.songxinqiang.stool.conf.ConfFileUtil
读取配置文件的信息,将信息以键值对的形式返回
本方法读取的配置文件不应该包含有使用[]表示出来的节点,配置项采用 分隔符(SEPARATOR_EQUAL)进行分隔,分隔符前面的部分作为键后面的部分作为值, 如果配置没有对应的值,那么会在结果的键值对记录中存储null
readLine(File) - Static method in class cn.songxinqiang.stool.io.FileIO
使用UTF-8的编码读取文件中的所有行,读取出错返回空列表
readLine(String) - Static method in class cn.songxinqiang.stool.io.FileIO
读取文件内容,传入的字符串参数是文件的完整路径描述,将用于创建File的对象,调用本方法和调用 #readLine(new File(file));是一样的的
runCmd(String) - Method in class cn.songxinqiang.stool.cmd.SystemCmdExec
执行系统命令,返回执行是否成功
runCmd(String[]) - Method in class cn.songxinqiang.stool.cmd.SystemCmdExec
执行系统命令,返回执行是否成功
runCmdForExitCode(String) - Method in class cn.songxinqiang.stool.cmd.SystemCmdExec
执行系统命令返回退出代码,
该方法会产生阻塞,等待执行结束后才会返回.
runCmdForExitCode(String[]) - Method in class cn.songxinqiang.stool.cmd.SystemCmdExec
执行系统命令返回退出代码,
该方法会产生阻塞,等待执行结束后才会返回.
runCmdForString(String) - Method in class cn.songxinqiang.stool.cmd.SystemCmdExec
执行系统命令返回结果字符串,返回结果输出的一个字符串列表
该方法会产生阻塞,等待执行结束后才会返回.
读取命令的输出结果时使用StandardCharsets.UTF_8
runCmdForString(String[]) - Method in class cn.songxinqiang.stool.cmd.SystemCmdExec
执行系统命令返回结果字符串,返回结果输出的一个字符串列表
该方法会产生阻塞,等待执行结束后才会返回.
读取命令的输出结果时使用StandardCharsets.UTF_8

S

SEPARATOR_EQUAL - Static variable in class cn.songxinqiang.stool.conf.ConfFileUtil
分隔符, 等号("=")
SystemCmdExec - Class in cn.songxinqiang.stool.cmd
系统命令执行工具类,提供对系统命令的执行操作
执行系统命令,获取输出或者不获取输出,支持linux或者windows系统,输出已经处理了乱码的情况
SystemCmdExec() - Constructor for class cn.songxinqiang.stool.cmd.SystemCmdExec
 

W

writeFile(String, List<String>) - Static method in class cn.songxinqiang.stool.io.FileIO
写入到文件,一次一行,文件不存在会创建文件,会清空原有内容
writeFile(File, List<String>) - Static method in class cn.songxinqiang.stool.io.FileIO
按照一次一行的方式写文件
会将文件中原有内容清除掉,所以需要在调用本方法传入的文件内容就会是调用后文件中的所有内容。 文件写入时使用的行分隔符,使用的是和操作系统相关的分隔符,使用 System.getProperty("line.separator");获取。
writeFile(String, String) - Static method in class cn.songxinqiang.stool.io.FileIO
向文件中写入内容,清空原有内容,文件不存在时会新建文件
writeFile(File, String) - Static method in class cn.songxinqiang.stool.io.FileIO
向文件中写入文本内容,会冲掉原本文件中的所有内容,如果文件不存在则会创建该文件
writeFileRecordWithNode(String, Map<String, Map<String, String>>) - Static method in class cn.songxinqiang.stool.conf.ConfFileUtil
将配置信息写入配置文件
writeFileRecordWithNode(String, Map<String, Map<String, String>>, boolean) - Static method in class cn.songxinqiang.stool.conf.ConfFileUtil
将配置信息写入到文件中,覆盖原文件信息,指定的文件若不存在会新建文件,会对节点不加处理,值会紧随键之后, 在键和值中间加入分隔符,分隔符使用(SEPARATOR_EQUAL, 在最后加入换行符(由System.getProperty("line.separator");确定)
writeFileRecordWithoutNode(String, Map<String, String>) - Static method in class cn.songxinqiang.stool.conf.ConfFileUtil
将配置信息写入文件,分隔符两边不带空格
writeFileRecordWithoutNode(String, Map<String, String>, boolean) - Static method in class cn.songxinqiang.stool.conf.ConfFileUtil
将配置信息写入到文件中,覆盖原文件信息,指定的文件若不存在会新建文件,值会紧随键之后, 在键和值中间加入分隔符,分隔符使用(SEPARATOR_EQUAL, 在最后加入换行符(由System.getProperty("line.separator");确定)
本方法输出的文件不包含节点
B C F G H M P R S W 
Skip navigation links

Copyright © 2018. All rights reserved.