encrypter: better tests + docs + border cases