简体   繁体   English

使用swift通过http POST安全发送信用卡详细信息是否安全?

[英]Is it safe to send credit card details securely over http POST using swift?

The API that I'm using requires me to send Credit Card Details to complete payment through a HTTP POST request (through swift). 我使用的API要求我发送信用卡详细信息,以通过HTTP POST请求(通过swift)完成付款。 Is this safe by any means? 这绝对安全吗? And moreover, how do I securely store credit card information for repeated payments? 此外,如何安全存储信用卡信息以进行重复付款?

The credit card holder's name, credit card number, cvc, and date of expiry are all sent over a POST request. 信用卡持有人的姓名,信用卡号,信用卡号码和有效期均通过POST请求发送。 Then, the API returns whether the payment was successful, and the last four digits of the credit card number. 然后,API返回付款是否成功,以及信用卡号的后四位。

Simply put, I'm not entirely familiar with payment security, and would like to know if this is safe, and moreover how to save payment information securely using swift, even if that's possible. 简而言之,我对支付安全性并不完全熟悉,并且想知道这是否安全,而且即使可能的话,如何使用swift安全地保存支付信息。 I don't think I can use stripe for this process, but I would love to know if that's possible as well. 我认为我不能在此过程中使用stripe,但是我很想知道是否也可以这样做。

EDIT: I have confirmed that the API I'm using does in fact employ an HTTPS connection, and not simply a HTTP server. 编辑:我已经确认我正在使用的API实际上使用了HTTPS连接,而不仅仅是HTTP服务器。 At this point, I know not to save credit card information locally and that I should retrieve it from a third party service before handling it. 目前,我知道不要将信用卡信息保存在本地,在处理之前,我应该从第三方服务中检索它。 Thanks All! 谢谢大家!

Just append a 's' with your http then it's permissible. 只需在您的http后面附加一个“ s”即可。 http is insecure as already mentioned by @t0mm13b. 如@ t0mm13b所述,http是不安全的。 So it's not safe. 因此不安全。

there is a Nice post . 有个不错的帖子

Edited: 编辑:

Don't be just happy that appending 's' is sufficient though. 但是,不要仅仅因为添加's'就足够了。 :) :)

Using Swift or any other programming language and sending sensitive information over HTTP is not secure as mentioned in the comments. 如注释中所述,使用Swift或任何其他编程语言并通过HTTP发送敏感信息并不安全。

Instead you should use an HTTPS connection. 相反,您应该使用HTTPS连接。

Sending any sensitive information over HTTP is not secure and not recommended. 通过HTTP发送任何敏感信息并不安全,因此不建议这样做。 Most of the payment gate ways doesn't allow you to establish a session on HTTP. 大多数付款方式都不允许您在HTTP上建立会话。 Even if you are using HTTPS usually sensitive information is encrypted and sometimes encoded on client end and server decrypts, decodes and processes it which inturn gives double security to the requests you make. 即使您使用HTTPS,通常敏感信息也会被加密,有时会在客户端进行编码,服务器会对其进行解密,解码和处理,从而为您的请求提供双重安全性。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM