Easiest two-way encryption to be used both on a PHP server and on iOS client -
for private use only, i'm creating , hosting on web server php application retrieves passwords various accounts mysql database , serves them client iphone application should able insert new passwords in database.
instead of sending data on internet plain text encrypt them before sending them i'm new encryption i'm feeling little bit disoriented among possible encryption algorithms out there.
while mcrypt
function on php seems flexible , compatible many encryption algorithms couldn't find on ios.
what wanted algorithm easy implement both on php , objective-c that, given plain text , encryption key (stored both on server , on client), encrypt , decrypt plain text.
for further detail the server/client communication had in mind this:
- client sends request containing client-specific-app-id , service password server should return
- the server checks if client id allowed information
- if client allowed server querys database , retrieves password
- the server encrypts password , sends client
- the client decrypts password , shows user
this thing personal use don't need unbreakable security because nobody care breaking it. i'm doing research , started encryption. know not secure @ all.
do guys know two-way encryption algorithm easy use both on php , objective-c can use encrypt passwords on server , decrypt them in ios?
don't bother own encryption. need use ssl link, e.g.
https://yourserver.example.com/getpasswords.php ^---
ssl gives encryption free, , bonus allows ios client reasonably sure it's connecting server, , not malicious fake server.
Comments
Post a Comment