Commit graph

9 commits

Author SHA1 Message Date
Tobie Morgan Hitchcock
ed6a9555a1 Return an error when data is corrupt 2016-09-14 17:02:48 +01:00
Tobie Morgan Hitchcock
814fee772f Don't decrypt if there is definitely no nonce 2016-08-28 09:29:14 +01:00
Tobie Morgan Hitchcock
629bd7dd92 No need for errors, as cipher block will always be valid 2016-08-28 09:28:53 +01:00
Tobie Morgan Hitchcock
25d9927be2 Update code comments 2016-08-28 09:28:33 +01:00
Tobie Morgan Hitchcock
3c8b68b503 Don't encrypt/decrypt blank strings 2016-07-18 14:24:48 +01:00
Tobie Morgan Hitchcock
f931b6c15c Ignore encryption if key length is 0 2016-05-24 10:27:46 +01:00
Tobie Morgan Hitchcock
d8e7c1008d Allow different length keys 2016-05-23 14:09:14 +01:00
Tobie Morgan Hitchcock
4d1e302e76 Use surreal rand package 2016-05-23 14:08:59 +01:00
Tobie Morgan Hitchcock
d1d40b1ee3 Add byte encryption decryption package 2016-05-21 18:05:11 +01:00