Skip to content

Decrypting Data

hsch edited this page Nov 6, 2014 · 1 revision
SecretTransform transform = mySecretKey.decryptVerifyFrom(otherPersonsAsciiPublicKey);
char[] myPassphrase = "my secret passphrase".toCharArray();
byte[] encryptedMessage = "...".getBytes(); // Have an ASCII-armored encrypted message here
transform.run(myPassphrase, new ByteArrayInputStream(Examples.encryptedMessage), System.out);
Hello, World!