Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
component:data [2021/02/07 09:54]
tshaw [Examples]
component:data [2021/02/07 09:58]
tshaw [Examples]
Line 69: Line 69:
   * Read the RECEIVER'​s public key (rPublic), unserialize it, and rebuild the key object.   * Read the RECEIVER'​s public key (rPublic), unserialize it, and rebuild the key object.
   * Generate a public key (sPublic) and private key (sPrivate).   * Generate a public key (sPublic) and private key (sPrivate).
-  * Generate an encryption key using rPublic and sPrivate.+  ​*Generate an encryption key using rPublic and sPrivate.
   * Generate an Initialization Vector (IV).   * Generate an Initialization Vector (IV).
   * Convert sPublic into a string with sPublic.serialize().   * Convert sPublic into a string with sPublic.serialize().
Line 78: Line 78:
   * Read the RECEIVER'​s private key (rPrivate), unserialize it, and rebuild the key object.   * Read the RECEIVER'​s private key (rPrivate), unserialize it, and rebuild the key object.
   * Receive the message and unserialize it using the serialization library, then deserialize sPublic using data.deserializeKey().   * Receive the message and unserialize it using the serialization library, then deserialize sPublic using data.deserializeKey().
-  * Generate a decryption key using sPublic and rPrivate.+  ​*Generate a decryption key using sPublic and rPrivate.
   * Use the decryption key, along with the IV, to decrypt the message.   * Use the decryption key, along with the IV, to decrypt the message.
   * Unserialize the decrypted data.   * Unserialize the decrypted data.