Skip to content

Instantly share code, notes, and snippets.

View iamcryptoki's full-sized avatar

Gael Gentil iamcryptoki

View GitHub Profile
@iamcryptoki
iamcryptoki / xen.cfg
Created February 26, 2017 20:03
Xen configuration for a working Qubes OS 4.x boot on a Macbook Pro 13-Inch Retina (Late-2013).
[global]
default=4.4.14-11.pvops.qubes.x86_64
[4.4.14-11.pvops.qubes.x86_64]
options=loglvl=all
kernel=vmlinuz-4.4.14-11.pvops.qubes.x86_64 root=/dev/mapper/qubes_dom0-root vconsole.font=latarcyrheb-sun16 rd.lvm.lv=qubes_dom0/root i915.preliminary_hw_support=1 rd.blacklist.drivers=radeon radeon.modeset=0
ramdisk=initramfs-4.4.14-11.pvops.qubes.x86_64.img
mapbs=1
noexitboot=1
@iamcryptoki
iamcryptoki / salesforce_apex_encryption_decryption.cls
Last active September 19, 2020 03:42
Encrypt and decrypt data in Salesforce using Apex Crypto class.
// Generate your own initialization vector
Blob iv = Blob.valueOf('Lorem ipsum dolor sit amet');
// Generate an AES key
Blob key = Crypto.generateAesKey(256);
// Generate the data to be encrypted
Blob data = Blob.valueof('Encrypt everything!');
// Encrypt the data