Encrypt CryptoJS without special characters

前端 未结 3 1174
滥情空心
滥情空心 2021-01-15 12:32

using nodejs I am trying to generate an unique URL for user to conform email address. From that URL user will be able to verify th

3条回答
  •  终归单人心
    2021-01-15 13:01

    You can easily replace the special characters with any of text like:

    ciphertext.toString().replace('+','xMl3Jk').replace('/','Por21Ld').replace('=','Ml32');
    

    Do not forget to replace these strings back with special characters

    dataString.toString().replace('xMl3Jk', '+' ).replace('Por21Ld', '/').replace('Ml32', '=');
    

    Hope this will help to solve your problem

提交回复
热议问题