本文介绍了如何集成Aadhaar卡验证Api的Aadhaar号码验证PHP?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在PHP中集成Aadhaar卡验证API用于Aadhaar数字验证。我尝试并撰写了API访问代码。
I want to integrate the Aadhaar Card Authentication API for Aadhaar number Verification in PHP. I tried this and wrote code for API access.
如何在PHP中生成XML加密字段数据? 用Java编写。
How can I generate the XML encryption field data below in PHP? This sample code is written in Java.
<Auth uid="" tid="" ac="" sa="" ver="" txn="" lk="">
<Uses pi="" pa="" pfa="" bio="" bt="" pin="" otp=""/>
<Tkn type="" value=""/>
<Meta udc="" fdc="" idc="" pip="" lot="G|P" lov=""/>
<Skey ci="" ki="">encrypted and encoded session key</Skey>
<Data type="X|P">encrypted PID block</Data>
<Hmac>SHA-256 Hash of Pid block, encrypted and then encoded</Hmac>
<Signature>Digital signature of AUA</Signature>
</Auth>
推荐答案
要生成XML,非常容易生成:
To generate the XML, you could use this library to generate it quite easily:
对于加密;我可能错了,但它看起来像()您可以在java中生成编码结果一次,然后将结果粘贴到您的PHP变量。
For the encryption; I could be wrong but it looks like (from this page) you can generate the encoded results in java one time and just paste in the results to your PHP variables.
这篇关于如何集成Aadhaar卡验证Api的Aadhaar号码验证PHP?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!