The following code does not work if we pick non-english characters within the key. For example if my key is 'aytaçşğ' the below code crashes. I should be able to pick unicode characters within the key.
ReactAES.sha256(key, 256).then(
hashOfPin => {
//do something with hashOfPin - maybe encrypt.
}
)