Integer len = 10; Blob blobkey = crypto.generateAesKey(128); String key = EncodingUtil.convertToHex(blobkey); String pwd = key.substring(0,len); system.debug('Random Password-' + pwd);
How to generate random password using Apex?
Biswajeet
September 22, 2015 No Comments on How to generate random password using Apex?