by non-entity · 6y ago · 0 comments
Another might say it was a weakness for snake oil.
To give you an example of how you would use some crypto-related library that implemented its API (?) in OOP:
let x = new Foo.bar in
x#absorb a;
x#squeeze b;
x#reset
Or take a look at: https://github.com/xavierleroy/cryptokit/blob/master/src/cry...This (this entire file) is a great example, too!