Skip to content

matkatmusic/OpenSSLToJuceRSAKey

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

OpenSSLToJuceRSAKey

a collection of classes that convert OpenSSL-generated X509 Public and Private keys into the juce::RSAKey format

usage:

juce::String key ( "------ BEGIN PUBLIC KEY------" .... );
juce::String expected ("this is a test message");
juce::String encrypted( "encrypted Base64 message goes here" );

PEMFormatKey rsaKey;
rsaKey.loadFromPEMFormattedString(key);
jassert(rsaKey.isValid());

auto decryptedString = rsaKey.decryptBase64String(encrypted);
jassert( decryptedString == expected );

About

a collection of classes that convert OpenSSL-generated X509 Public and Private keys into the juce::RSAKey format

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published