Advertisement
Guest User

Untitled

a guest
May 5th, 2015
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. for(Account a : scope)
  2. {
  3. Blob stringencry =Blob.valueOf(a.phone);
  4. Blob encrypted = Crypto.encryptWithManagedIV('AES256', seckey, stringencry);
  5. String b64=EncodingUtil.base64Encode(encrypted);
  6. a.phone=b64;
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement