如何在xslt中加密并在java中解密 [英] how can encrypt in xslt and decrypt in java

查看:65
本文介绍了如何在xslt中加密并在java中解密的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的xslt文件中有随机编号。需要加密某些值的地方。

并且它想要在java类中解密。

我正在使用java代码进行xsl转换。

加密的值是xml fie。

我在java代码和durig xsl转换中进行了加密,将加密值设置为参数。

但是在随机没有的情况下。加密需要执行的地方,我该怎么办?

是否可以在java类中解密?

In my xslt file there are random no. of places where encryption of some value needed.
And also it want to decrypt in a java class.
I am using xsl transformation using java code.
The values o be encrypt are in xml fie.
I had done encryption in java code and durig xsl transformation, set encrypted value as parameter.
But in the case where random no. of places where encryption need to perfrom, how can I do it?
Is it possible to decrypt in java class?

推荐答案

你应该看一下 PGP的概念 [ ^ ]。



这里有很多很棒的lib支持你。
You should take a look at the concept of PGP[^].

There are great libs out there supporting you in the task.


这篇关于如何在xslt中加密并在java中解密的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆