starekrow
starekrow
I used serialize advisedly, because JSON is utterly useless for binary strings unless you pre-encode them and secret tokens are fairly likely to contain such strings. Eventually it should be...
Interesting; I’d be happy to see a PR along these lines. FYI, the main considerations that went into the design of the CryptoCore: 1. Semantic ease of use: Being able...
Upon reflection, feel free to ignore that comment. It made a lot of sense for `Crypto` to be set up as an accessible, independent component that was self-configuring. OTOH, the...
Not exactly; I think the separation between the key (details of encryption) and the output of Lock (encrypted message) is fairly important. The most that Lock() should return is probably:...
Hmm. I think it would work out better to move the abstraction deeper, along these lines: ```php public function hash( $alg, $data ); public function hmac( $alg, $key, $data );...
FYI all, I'm building this out now. I'm going with a static API and a driver model, should be pretty slick.
Argeed. If we can get the KDF stuff handled quickly (viz. #5 and #11) and bump CryptoKey to `k1|...`, I’d say version 1.0.0. I’d accept a PR for 0.1.0 at...