Home > Back-end >  To solve the program..
To solve the program..

Time:09-24

A, write a password transmission encryption program
After 5 digit password encryption is still 5 digits, encryption required to perform the following step 2:
1) first of all, a a 5 digit processing, each digit plus 5, respectively, the remainder of a divided by 10, form new 5 digits,
2) then, new 5 digits, the first digit from the left and the right of the fifth digit swaps, the second digit and the fourth number swaps, third is changeless,

Note: the program won't consider using a character or string processing, so the five figures don't begin with 0, but the encrypted may begin with 0, please show in front of five digits 0, namely if encrypted number is 00765, 00, according to the front, please don't only show 765. Please show the complete 00765,
After 12349 encryption is 49876
After 51258 encryption is 30760
After 73555 encryption is 00082
After 52555 encryption is 00070
After 82955 encryption is 00473
After 32175 encryption is 02678
After 15559 encryption is 40006

Two, please write the first topic the decryption process
  • Related