Alice chooses a prime p: | |

Alice chooses another prime q: | |

Alice chooses the block size: | |

The value of k is (p - 1)(q - 1) = | |

The value of her private key d is e^{-1} (mod n) = |

The value of n is pq = | |

Alice chooses her public key e: |

Bob writes a text message: | Bob's message in ASCII: | Bob's encrypted message: | |||

Alice receives Bob's message: | Alice decrypts message into ASCII: | Bob's text message | ||