[JS] How to use SubtleCrypto object? | Sololearn: Learn to code for FREE!


[JS] How to use SubtleCrypto object?

When I was bored I just was looking at JS Web API's. And then I found SubtleCrypto... I read a small wikipage about it, but didn't get how it works. The only thing I know about it that SubtleCrypto is crypting object for web JS. My question is - how to use this Object and how to encrypt a string with it?

6/23/2018 5:23:31 PM


2 Answers

New Answer


You will need to fetch JSON from the API, do you know anything how promises and async/await works?


damyco I understand promises when they appear in someone's code, but I've never used them by myself. The same thing with async await