@Override
        public KeyPair generateKeyPair() {
            try {
                KeyPairGenerator generator = KeyPairGenerator.getInstance("RSA");
                generator.initialize(4096);
                return generator.generateKeyPair();
            } catch (Exception e) {
                throw new RuntimeException("Exception generating keypair", e);
            }
        }
The signature algorithm & public/private key crypto logic used by the web editor socket connection.
common/src/main/java/me/lucko/luckperms/common/webeditor/socket/SignatureAlgorithm.java