Site Map - skip to main content

Hacker Public Radio

Your ideas, projects, opinions - podcasted.

New episodes every weekday Monday through Friday.
This page was generated by The HPR Robot at


hpr0253 :: Encryption

Xoke talks about types of encryption

<< First, < Previous, , Latest >>

Hosted by Xoke on Thursday, 2008-12-18 is flagged as Explicit and is released under a CC-BY-NC-SA license.
Security, Encryption. (Be the first).
The show is available on the Internet Archive at: https://archive.org/details/hpr0253

Listen in ogg, spx, or mp3 format. Play now:

Duration: 00:18:24

general.

Three Prime Numbers: 2, 3 and 5.
I will call them A, B and C so A=2, B=3 and C=5
Working through x as the current position, 
and i being the unencrypted password and j being the encrypted as an array,
 so i[x] is the 'current' position we get:

j[x] = ((j[x-1] + i[x] + A) * B ) MOD C

The password example I give is:

Encrypting 123

1 (unencrypted password) + 2 (Prime A) = 3
3 * 3 (Prime B) = 9
9 MOD 5 (Prime C) = 4

4 (previous encrypted) + 2 (current unencrypted) + 2 (Prime A) = 8
8 * 3 (Prime B) = 24
24 MOD 5 (Prime C) = 4

4 (previous encrypted) + 3 (current unencrypted) + 2 (Prime A) = 9
9 * 3 (Prime C) = 27
27 MOD 5 (Prime C) = 2

So the encrypted password is 442

Comments

Subscribe to the comments RSS feed.

Leave Comment

Note to Verbose Commenters
If you can't fit everything you want to say in the comment below then you really should record a response show instead.

Note to Spammers
All comments are moderated. All links are checked by humans. We strip out all html. Feel free to record a show about yourself, or your industry, or any other topic we may find interesting. We also check shows for spam :).

Provide feedback
Your Name/Handle:
Title:
Comment:
Anti Spam Question: What does the letter P in HPR stand for?
Are you a spammer?
Who is the host of this show?
What does HPR mean to you?