Skip to content

Releases: posterity/ece

v1.2.0 – Added implementations for io.ReaderFrom and io.WriterTo

27 Dec 16:38
Compare
Choose a tag to compare

Implemented Writer.ReadFrom and Reader.WriteTo to improve
copying from/to a writer/reader using a buffer optimized
for the chosen record size.

v1.1.0 – Added `EncodeString()` and `Cipher` type

27 Dec 00:26
Compare
Choose a tag to compare

Added the EncodeString package function as a quick way to
encode a string using default params, just like other encoding
packages in Go offer.

Also added a new Cipher type, which is useful when storing
ECE-encoded ciphers in a database. More specifically, this new
type offers basic validation when parsing JSON or raw database
values. Operations fail if the []byte value does not start
with a valid header.