Simplify shared key generation in NameCryptoJS