Hash your password with domain name (or any other text) Hash used is SHA-256 (base64) This code uses CryptoJS v3.1.2 code.google.com/p/crypto-js/wiki/License