How Wechat / AliPay QR codes are protected from being tampered?
I'm curious how these QR payment systems have secured their QR codes.
What kinds of security mechanisms are there in place?
Decoding the QR gives a random string looking like some hash result that contains data for the payment to happen. what kind of encoding/encryption is done here?
Like this QR data contains name and phone number of a recipient.
+huM1AUuk+vG1GuWAKLn68VlUpekvkR3pr/TJV6rd1qDoW7Cu4Gs2Sh6xtC9B2Z+fSLqeN+GqUlQnr+zbTVhYEiwgaHseRMKNyrzcfI4rxRrPMWXSfTfSjJrlOEHVTajJfwLK1+d2xGq3LiIwzRDMykD
RmkcuYbsx6u25LaH3YM=
And this one contains just the recipient's name.
2810050501011MFF97FUSA49
(As scanned from Paytm's app)
Data required for payments to happen is not kept in plain text and there's a strong reason to do so, else any QR can be tampered and replaced to create a fake one impersonating the genuine recipient or, a malicious code can be put into the QR to steal personal data or a link to some malicious website.
There must be some digital signature to verify authenticity of QR and some sort of encryption to encrypt actual data from being tampered.
What exactly are the security protocols / Best practices used by these QR payment systems?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论