1、在java中创建一个java工程,编写自己的java类 2、将java工程导出jar包 3、在测试计划中添加调用的这个jar包 4、beanshell 5、在其他地方直接调用password_sha256即可