reset password
Author Message
Posts: 26
Posted 13:33 Mar 07, 2017 |

Has anyone come  across a problem creating more than one hash crypto instances? Does anyone have any tips because i'm getting errors with digest()

Posts: 60
Posted 13:42 Mar 07, 2017 |

you cant use the hash instance after you digest. it's in the documentation I think. 

Posts: 11
Posted 13:45 Mar 07, 2017 |

Yeah I had that problem. I solved it by declaring hash inside the loop so a new one is created everytime it's needed. Though I never tried making it a "let" instead of a "const". Hope that helps.

Posts: 26
Posted 14:22 Mar 07, 2017 |