Skip to content

Instantly share code, notes, and snippets.

View KennethJAnthony's full-sized avatar

KennethJAnthony

View GitHub Profile
@nikitakarpenkov
nikitakarpenkov / RSA.cls
Last active February 5, 2025 15:59 — forked from karmats/RsaEncryption.cls
RSA encryption / decryption in salesforce apex
public class RSA {
private Key key;
// Hex digits
private static final String DIGITS = '0123456789abcdef';
private static final Decimal HEX_BASE = 16;
public abstract class Key {
private String modulus;
public Key(String modulus) {