Hi @zhaque,
In my experience, many customers use the 'crypto' extension, although technically that is one-way cryptographic hashing rather than encryption. It can hash to MD5, SHA1, SHA256 or SHA512 but obviously that can't (reliably) be un-hashed again, but for an indentification key, for example, it should work. I haven't come across anyone using crypto.js for a few years, as you said it isn't actively being developed, so I suspect people may steer clear of it for that reason.
The structure of your solution seems reasonable though. I will ask my colleagues if anyone has any more experience of javascript AES encryption libraries, and get them to reply to this if they do.
Many thanks
Steve Lake
... View more