Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for(Account a : scope)
- {
- Blob stringencry =Blob.valueOf(a.phone);
- Blob encrypted = Crypto.encryptWithManagedIV('AES256', seckey, stringencry);
- String b64=EncodingUtil.base64Encode(encrypted);
- a.phone=b64;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement