https://thecode.media/vernam-js/