Skip to content

Instantly share code, notes, and snippets.

View KennethJAnthony's full-sized avatar

KennethJAnthony

View GitHub Profile
@KennethJAnthony
KennethJAnthony / RSA.cls
Last active February 19, 2024 18:22 — forked from nikitakarpenkov/RSA.cls
RSA encryption / decryption in salesforce apex
@isTest
global without sharing 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;