0

I'm looking for a secure library in PHP and Dart so I can send encrypted data from Dart and decrypt it in PHP. I have no knowledge in Dart so I need help please.i Searched and found some encryption libraries but nothing is common yet between Dart and PHP.

PHP User
  • 2,350
  • 6
  • 46
  • 87
  • Why not use HTTPS to establish a secure communication line between you running Dart code and PHP? It seems rather unnecessary to begin implementing manual encryption. – julemand101 Oct 05 '19 at 13:05
  • 1
    HTTPS will be established but may get cracked and data will be insecure – PHP User Oct 05 '19 at 13:07
  • 1
    On what basis do you think HTTPS will get cracked? – MuffinMan Oct 05 '19 at 14:09
  • 1
    Many hackers could crack or hack the encrypted data (the SSL encryption) and extract plain data as I read on the internet SSL is not 100% safe and pain data should also be encrypted – PHP User Oct 05 '19 at 15:32

1 Answers1

3

In PHP you can use openssl_public_encrypt and openssl_private_decrypt, in Dart you can use encrypt library. Also take a look at this answer.

janstol
  • 2,857
  • 1
  • 18
  • 21