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 May 2, 2024 21:49 — 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) {