Is defuse/php-encryption suitable for use in network encryption? -
i managing 2 servers have shared secret key.
i able send data between servers in manner if listening in middle, data read if has secret key. requirements are:
- encryption
- authentication
but also:
- freshness: old encrypted data has been intercepted in past not accepted if transmitted else.
i wondering if defuse/php-encryption applicable scenario given provides encryption , authentication. took @ libsodium want stay away pecl if possible.
thank you.
i suggest use existing cipher suite can "blanket secure" entire connection between 2 parties. then, in case, use digital certificates (they can self-signed ...) secure connection. (do not use "shared secrets," a.k.a. "passwords.")
- tls (the successor ssl) used https secure web-sites. (be sure use current version of protocol!)
- vpn (as "openvpn" or "ipsec") provides "a secure router" between 2 subnets. advantage of strategy 2 parties don't have anything obtain secure, reliable connection: it’s there.
- ssh able "tunneling," it's too-easy (imho) data wind being passed insecurely, , doesn't provide identity-verification.
these cipher suites provide 3 important guarantees:
- the data not intelligible other party.
- there no "man in middle." parties can identify whom communicating.
- messages received known "exactly sender sent."
- nothing in-secure passing "out of band" between 2 parties.
... , yet, operate "in background," routinely see tls doing when connect secure web-site. "it is secure, , 'it works.'" very important scheme unobtrusive authorized users.
Comments
Post a Comment