cipher is getting long, especially for update which has almost double the payload (need to encode bother the old and new alias). Our options to shorten it include some combination of the following:
- compress the result
- switch credential type codes to be integers
- do not use JSON.stringify, instead implement a custom serializer
- use a more compact encryption
- store alias requests in the db along with a "shortcode", send the shortcode to the channel rather than a cipher.
Additionally I am pretty sure we want to salt the cipher which will actually add to the size. - that is unless we go with option 5.
cipher is getting long, especially for update which has almost double the payload (need to encode bother the old and new alias). Our options to shorten it include some combination of the following:
Additionally I am pretty sure we want to salt the cipher which will actually add to the size. - that is unless we go with option 5.