当前位置: 首页 > news >正文

WebSphere Liberty 8.5.5.9 (二)

WebSphere Liberty 8.5.5.9 (二)

encode and decode

Pre WebSphere Liberty 8.5.5.9

xor and AES

提取 D:\wlp-webProfile7-java8-8.5.5.9\wlp\lib 下必要加解密包

com.ibm.ws.crypto.certificateutil_1.0.12.jar
com.ibm.ws.crypto.passwordutil_1.0.12.jar
com.ibm.ws.kernel.service.location_1.1.12.jar
com.ibm.ws.kernel.service_1.3.12.jar
com.ibm.ws.logging_1.0.12.jar

解密 {xor}CDo9Hgw=

String plainText = "WebAS";

System.out.println("1 -- " + PasswordUtil.passwordEncode(plainText));
System.out.println("2 -- " + PasswordUtil.passwordDecode("{xor}CDo9Hgw="));

String aesEncodedVal = PasswordUtil.passwordEncode(plainText, "aes");
System.out.println("3 -- " + aesEncodedVal);
System.out.println("4 -- " + PasswordUtil.passwordDecode(aesEncodedVal));

结果输出验证
在这里插入图片描述

http://www.dtcms.com/a/3888.html

相关文章:

  • Unity中关于Lerp()方法的使用
  • k8s存储
  • Python与ArcGIS系列(二)获取地图文档
  • 【SpringBoot】手写模拟SpringBoot核心流程
  • 超强C语言跨年烟花代码,精美无比,附源码分步解析
  • No source control providers registered
  • 小程序 打开方式 页面效果 表单页面 点击跳到详情页 图标 获取后台数据 进行页面渲染
  • 智安网络|探索人机交互的未来:自然语言处理的前沿技术
  • C# wpf 实现任意控件(包括窗口)更多拖动功能
  • 【Spring生命周期核心底层源码之剖析】
  • C复习-结构struct+bit field+union
  • Python 使用tkinter复刻Windows记事本UI和菜单(二)
  • K8S篇之Pod中的资源限额
  • HTTPS的工作流程
  • 输入一个url后,会发生什么事?
  • Flink 基础 -- 应用开发(Table API SQL) Table API
  • npm 下载包失败解决方案
  • 内网如何使用Python第三方库包(举例JustinScorecardPy)
  • 第十三章《搞懂算法:神经网络是怎么回事》笔记
  • 基于Qt Linux开发板USER-KEY按键实现
  • uboot - 驱动开发 - dw watchdog
  • [autojs]逍遥模拟器和vscode对接
  • 通义千问, 文心一言, ChatGLM, GPT-4, Llama2, DevOps 能力评测
  • 原始html和vue中使用3dmol js展示分子模型,pdb文件
  • mysql,redis导入导出数据库数据
  • RustRover里使用AI通义灵码来写代码
  • IDEA插件开发--持久化配置信息方案
  • play() failed because the user didn‘t interact with the document first.
  • 路径加密(替换空格),剑指offer,力扣
  • 使用iperf3在macOS上进行网络性能测试