Hey there! Sign in to join this conversationNew here? Join for free
    • Thread Starter
    Offline

    16
    ReputationRep:
    In congruences, I have a number 'a', which is co prime with another number 'n'. I factorized 'n' into primes and have worked out phi of 'n'.

    The question is to do with RSA.

    The question is to workout the decoding element x, and in brackets it's written, i.e a^(-1) mod phi(n).

    So does that mean that I need to workout the inverse of a and that will give me the decoding element x?

    If so, how do I do this?
    Offline

    0
    ReputationRep:
    The inverse of a mod \phi (n) is the unique integer x satisfying ax \equiv 1 mod \phi (n)

    To find x, write the above congruence as a linear equation and use Euclid's Algorithm.
    • Thread Starter
    Offline

    16
    ReputationRep:
    (Original post by Dragon)
    The inverse of a mod \phi (n) is the unique integer x satisfying ax \equiv 1 mod \phi (n)

    To find x, write the above congruence as a linear equation and use Euclid's Algorithm.
    By linear equation, do you mean writing it like ax + by = 1

    Where a is just a and b is phi(n)?
    Offline

    0
    ReputationRep:
    Yep.
 
 
 
  • See more of what you like on The Student Room

    You can personalise what you see on TSR. Tell us a little about yourself to get started.

  • Poll
    Has a teacher ever helped you cheat?
    Useful resources

    Make your revision easier

    Maths

    Maths Forum posting guidelines

    Not sure where to post? Read the updated guidelines here

    Equations

    How to use LaTex

    Writing equations the easy way

    Student revising

    Study habits of A* students

    Top tips from students who have already aced their exams

    Study Planner

    Create your own Study Planner

    Never miss a deadline again

    Polling station sign

    Thinking about a maths degree?

    Chat with other maths applicants

    Can you help? Study help unanswered threads

    Groups associated with this forum:

    View associated groups
  • See more of what you like on The Student Room

    You can personalise what you see on TSR. Tell us a little about yourself to get started.

  • The Student Room, Get Revising and Marked by Teachers are trading names of The Student Room Group Ltd.

    Register Number: 04666380 (England and Wales), VAT No. 806 8067 22 Registered Office: International House, Queens Road, Brighton, BN1 3XE

    Write a reply...
    Reply
    Hide
    Reputation gems: You get these gems as you gain rep from other members for making good contributions and giving helpful advice.