• Praveen kumar 61
  • NEWBIE
  • 0 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 3
    Replies

Hi,   I came across the following functuon for generating a random password.  I require that the password is alphanumeric.

 

I note the function does seem to return alphanumeric characters.  Does this seem correct or is it just a coincidence in the passwords I've generated so far?   I need to confirm if alphanumeric will always be returned. If so, what is the logic (explanation) for it?

 

public String generator(Integer len){
Blob blobKey = crypto.generateAesKey(128);
String key = EncodingUtil.convertToHex(blobKey);
return key.substring(0,len);
}

 

Thanks in advance for any help!

I have created all the custom objects,fields ,page layouts etc on Sandbox instance. Now, how do I migrate them to the actual live instance. Is there any migration tool to do the same or do I need to re-create all these on Live manually ?

Please explain the process!

 

Thanks

  • February 09, 2010
  • Like
  • 0
Hi all,

I have a bit of a problem here, I need a field that generates an random 7 digits number when a record is created. Can anyone think of a way on how to do this?

Any help would be highly appreciated.