The encryption would need to follow below rules and each rule would be applied once in the following order:
(1) ASCII Shifting: For any Hex ASCII character within the string, let’s suppose its current position index at the string is n (zero based), it should be converted to the hex in the above table that is in the n-th position right after current hex character. If the converted character overflows ‘F’, it should circle back from ‘0’.For example, “3A4E” should be translated to “3B61” because character ‘3’ is in 0th position, it should remain same.
character ‘A’ is in 1st position, it should be converted to ‘B’ (1st Hex after ‘A’ at the Hex table. A - > B)
character ‘4’ is in 2nd position, it should be converted to ‘6’ (2nd Hex after ‘4’ at the Hex table. 4 –> 5, 6)
character ‘E’ is in 3rd position, it should be converted to ‘1’ (3rd Hex after ‘E’ at the Hex table, note it overflows ‘F’ hence circle back from beginning. E -> F, 0, 1)(2) Re-ordering: Revert the shifted string.
For example “3B61” should be re-ordered as “16B3”
(1) ASCII Shifting: For any Hex ASCII character within the string, let’s suppose its current position index at the string is n (zero based), it should be converted to the hex in the above table that is in the n-th position right after current hex character. If the converted character overflows ‘F’, it should circle back from ‘0’.For example, “3A4E” should be translated to “3B61” because character ‘3’ is in 0th position, it should remain same.
character ‘A’ is in 1st position, it should be converted to ‘B’ (1st Hex after ‘A’ at the Hex table. A - > B)
character ‘4’ is in 2nd position, it should be converted to ‘6’ (2nd Hex after ‘4’ at the Hex table. 4 –> 5, 6)
character ‘E’ is in 3rd position, it should be converted to ‘1’ (3rd Hex after ‘E’ at the Hex table, note it overflows ‘F’ hence circle back from beginning. E -> F, 0, 1)(2) Re-ordering: Revert the shifted string.
For example “3B61” should be re-ordered as “16B3”
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货