Data Conversion Method Using Bit Extraction and Decimal Padding
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing data converting methods for ensuring message and password security are complex due to the use of different data conversion techniques, which complicate the process of converting data into message digests or passwords.
Innovation Solution
A data converting method and device that obtain predetermined bits from a data string, convert them to a decimal number, and ensure the output is of a fixed length by either truncating or padding with zeros, simplifying the process and making it more uniform and applicable.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If complex data converting methods (message digest computation, password generation with random numbers) are used to ensure security, then security reliability is improved, but device complexity and ease of operation deteriorate
Solution Approach 1:
The patent extracts only the essential bits needed for the conversion operation from the data string, rather than processing the entire data string through complex algorithms. By selecting specific bits at calculated offsets and converting only those bits to decimal, the system achieves the required security function with significantly reduced computational complexity, directly resolving the contradiction between security reliability and device complexity.
Solution Approach 2:
The patent creates a simplified copy of the data conversion process that maintains security functionality while eliminating unnecessary complexity. Instead of using full message digest computation or random number generation, the system creates a streamlined version that uses bit extraction and decimal conversion, achieving the same security objective with much simpler operations.
2Adaptability or versatility
If different data converting methods are used for different solutions (message to message digest, random number generation), then adaptability is improved, but device complexity and ease of operation worsen
Solution Approach 1:
The patent develops a universal data conversion method that can handle different data types and security requirements through a single unified approach. By using the same bit extraction and decimal conversion process for various applications (message authentication, password verification, etc.), the system achieves multi-functionality without requiring different conversion methods, thereby improving ease of operation while maintaining adaptability.
Data Source
AI summary
A data converting method and device therefor are disclosed by the invention, relating to data converting algorithm field, solving the problem of complicate data converting method in prior art. Steps of the invention are obtaining offset from the predetermined byte of the data string to be converted; obtaining the predetermined bits of data from the data string to be converted according to the offset; converting the obtained bits to decimal number; determining whether size of the decimal number is smaller than the first predetermined length, if so, keeping adding 0 to the upper digit of the decimal number till the first predetermined length is reached, and taking the data with added 0 as the converted data; otherwise keeping obtaining data from low bit of the decimal number, till the first predetermined length is reached, and taking the obtained data as the converted data. The method of the invention is mainly used for devices and methods requiring data converting, e.g. one time password generating method and device therefor.


