File encoding and decoding method, system, device and medium based on byte dynamic transcoding
By dynamically obfuscating and decoding each byte of the file, generating an obfuscating key array, encoding and decoding the buffer bytes, the problem of slow file encryption speed and poor security in the existing technology is solved, and the file is realized Fast and secure encryption and decryption, suitable for various file formats.
Patent Information
- Application Number
- CN202410978636.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-22
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2044-07-22
AI Technical Summary
The prior art has problems in file encryption, such as slow speed, high computing resources, insufficient memory and poor security, making it difficult to quickly, safely and conveniently implement file encoding and codec.
By using a method based on byte dynamic transcoding, dynamic obfuscation and decoding of each byte of the file is generated, obfuscation key arrays are encoded and decoded, and the buffer bytes are encoded and decoded to achieve fast and secure encryption and decryption of the file.
It realizes efficient encryption and decryption of files, with high security, high encryption efficiency, easy operation, fast encryption and decryption speed, and has anti-tampering functions, suitable for various file formats.
Smart Images

Figure CN118504040B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of encoding and decoding technology, and in particular to a file encoding and decoding method, system, device and medium based on byte dynamic transcoding. Background Art
[0002] With the development of information technology, the requirements for information security are increasing. In order to ensure data security and avoid data leakage, files involved in information systems are often stored in encrypted form. For file encryption, commonly used file encryption mainly includes: compressing the file and then encrypting the compressed file. This encryption method is relatively simple, easy to crack, and not very secure; encrypting the entire file as a whole. This method is prone to problems such as memory overflow when processing large files; using AES or DES symmetric encryption algorithm to encrypt bytes. This method has a slow encryption and decryption speed and consumes a lot of computing resources. For encryption and decryption operations of large files, it will also cause insufficient memory problems.
[0003] Therefore, how to quickly, safely and conveniently implement the encoding and decoding of files to meet the requirement that files cannot be stored in plain text is a technical problem that needs to be solved urgently. Summary of the invention
[0004] The technical task of the present invention is to provide a file encoding and decoding method, system, device and medium based on byte dynamic transcoding to solve the problem of how to quickly, safely and conveniently implement file encoding and decoding to meet the requirement that files cannot be stored in plain text.
[0005] The technical task of the present invention is achieved in the following way: a file encoding and decoding method based on byte dynamic transcoding, which implements the encoding and decoding operation of the file by dynamically obfuscating and decoding each byte of the file, as follows:
[0006] File preprocessing: Preprocess the file with character (IO) stream to obtain the total size of the file and the total size of the bytes occupied by the file name, and generate the obfuscated basic solution according to the total size of the file and the total number of bytes occupied by the file name;
[0007] Dynamic calculation of obfuscation key: Calculate the obfuscation basic solution according to the size of the byte buffer, dynamically generate the obfuscation key code values of all bytes in the buffer, and obtain the dynamic obfuscation key array;
[0008] File encoding and decoding: Encode and decode the bytes in the buffer based on the dynamic obfuscation key array, that is, transcode the bytes according to the byte obfuscation key code value to achieve the encoding and decoding operation of the entire file.
[0009] As a preference, the buffer size is set to 4K by default and supports dynamic adjustment; the details are as follows:
[0010] Initialize a numeric array with a capacity of 4*1024 and a default value of 0;
[0011] Generate an obfuscation key code value for a numeric array according to the basic solution of the obfuscation key and the position subscript of the numeric array, and store it in the corresponding position of the numeric data to generate an obfuscation key array.
[0012] Preferably, the obfuscated key value is calculated by taking the quotient of the array subscript and the maximum value represented by a byte and performing a modulus operation.
[0013] As a preferred method, the file encoding and decoding is as follows:
[0014] Set the file processing buffer array. The size of the buffer array is consistent with the cache size of the obfuscation key dynamic calculation;
[0015] Read the file byte stream into the buffer in the form of character stream;
[0016] The bytes are byte-obfuscated and encoded and decoded in the buffer; wherein the rule of byte-obfuscation encoding and decoding is to jointly calculate the byte buffer and the obfuscation key array to obtain the obfuscation key code value.
[0017] Preferably, the bytes are byte-obfuscated and encoded and decoded in the buffer as follows:
[0018] ①According to the subscript position of the buffer array, obtain the obfuscated value of the obfuscated key array;
[0019] ② Encode and decode the original bytes and obfuscated values at the corresponding positions in the buffer, and replace the original values with the values decoded by the encoder;
[0020] ③ Write the bytes of the corresponding buffer into the file in the form of a character stream, and repeat steps ① and ② until all bytes of the corresponding file are processed.
[0021] A file encoding and decoding system based on byte dynamic transcoding, the system is used to implement the file encoding and decoding method based on byte dynamic transcoding as described above; the system comprises:
[0022] A file preprocessing module is used to preprocess the file with a character (IO) stream, obtain the total size of the file and the total size of bytes occupied by the file name, and generate an obfuscated basic solution according to the total size of the file and the total number of bytes occupied by the file name;
[0023] The obfuscation key dynamic calculation module is used to calculate the obfuscation basic solution according to the size of the byte buffer, dynamically generate the obfuscation key values of all bytes in the buffer, and obtain the dynamic obfuscation key array;
[0024] The file encoding and decoding module is used to encode and decode the bytes in the buffer based on the dynamic obfuscation key array, that is, to transcode the bytes according to the byte obfuscation key code value to realize the encoding and decoding operation of the entire file.
[0025] As a preference, the buffer size is set to 4K by default and supports dynamic adjustment; the details are as follows:
[0026] Initialize a numeric array with a capacity of 4*1024 and a default value of 0;
[0027] Generate an obfuscation key code value for the numeric array according to the basic solution of the obfuscation key and the position subscript of the numeric array, and store it in the corresponding position of the numeric data to generate an obfuscation key array;
[0028] The obfuscated key value is calculated by taking the quotient of the array subscript and the maximum value represented by a byte and performing a modulus operation;
[0029] The file encoding and decoding modules include:
[0030] The submodule is used to set the file processing buffer array. The size of the buffer array is consistent with the size of the cache area for dynamic calculation of the obfuscation key.
[0031] The reading submodule is used to read the file byte stream into the buffer in the form of character stream;
[0032] The byte encoding and decoding submodule is used to perform byte obfuscation encoding and decoding on bytes in the buffer; the byte obfuscation encoding and decoding rules are to perform joint calculations on the byte buffer and the obfuscation key array to obtain the obfuscation key code value; the details are as follows:
[0033] ①According to the subscript position of the buffer array, obtain the obfuscated value of the obfuscated key array;
[0034] ② Encode and decode the original bytes and obfuscated values at the corresponding positions in the buffer, and replace the original values with the values decoded by the encoder;
[0035] ③ Write the bytes of the corresponding buffer into the file in the form of a character stream, and repeat steps ① and ② until all bytes of the corresponding file are processed.
[0036] Preferably, the working process of the system is as follows:
[0037] (1) Perform file preprocessing through the file preprocessing module;
[0038] (2) Get the total file size and the total number of bytes occupied by the file name;
[0039] (3) Determine whether it is an empty file;
[0040] ①If yes, jump to step (9);
[0041] ②If not, proceed to step (4);
[0042] (4) Calculate the basic solution of the obfuscated key;
[0043] (5) Calculate the obfuscation buffer key array;
[0044] (6) Read the byte stream into the buffer;
[0045] (7) Replace the original bytes according to the obfuscation key;
[0046] (8) Determine whether all bytes of the file have been processed:
[0047] ①If yes, go to step (9);
[0048] ②If not, jump to step (6);
[0049] (9) End.
[0050] An electronic device comprising: a memory and at least one processor;
[0051] Wherein, the memory stores a computer program;
[0052] The at least one processor executes the computer program stored in the memory, so that the at least one processor performs the file encoding and decoding method based on byte dynamic transcoding as described above.
[0053] A computer-readable storage medium stores a computer program, and the computer program can be executed by a processor to implement the file encoding and decoding method based on byte dynamic transcoding as described above.
[0054] The file encoding and decoding method, system, device and medium based on byte dynamic transcoding of the present invention have the following advantages:
[0055] (I) The present invention adopts the technology of dynamic generation and management of obfuscation keys, and performs obfuscation transcoding on bytes, thereby realizing encryption of files and meeting the requirement that files cannot be stored in plain text. It also has the characteristics of high encryption efficiency, strong security, dynamic management of obfuscation keys, and file tamper-proofing;
[0056] (II) The main purpose of the present invention is to implement encryption and decryption of files by obfuscating and transcoding bytes according to certain rules for byte encoding, and to achieve fast, secure and convenient encryption and decryption for files of various formats;
[0057] (III) The present invention adds an obfuscation value to the code value of the original byte through an algorithm, and saves the obfuscated value into the corresponding byte. In order to reduce computing resources, the obfuscation value adopts a numeric data type. At the same time, in order to improve security, the obfuscation value adopts different obfuscation values according to the byte position. This method finally realizes the encryption of the file and ensures the security of the file. At the same time, this method adopts byte-based obfuscation processing, so this method can be applied to files of various formats;
[0058] (IV) The present invention realizes document encryption by converting byte codes. Compared with other common encryption algorithms such as symmetric encryption algorithms (AES, DES), the present invention has the advantages of easy operation, fast encryption and decryption speed, dynamic change of keys based on bytes, and the size of the encrypted file is consistent with the size of the original file.
[0059] (V) The present invention is implemented based on byte encoding, pre-processing the file with a character stream to obtain the size of the file and the total number of bytes, and then calculating according to the total number of bytes to obtain the basic obfuscation solution of the file. Based on the basic obfuscation solution, offset obfuscation is performed on each byte, and the obfuscated key is transcoded for the byte until all bytes are processed. Finally, the file encryption and decryption functions are realized, which can be applied to files of various formats, greatly facilitating the encryption scenarios and applications of files of various formats. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] The present invention is further described below in conjunction with the accompanying drawings.
[0061] Attached Figure 1 The flowchart is a flowchart of the working process of the file encoding and decoding system based on byte dynamic transcoding. DETAILED DESCRIPTION
[0062] The file encoding and decoding method, system, device and medium based on byte dynamic transcoding of the present invention are described in detail below with reference to the accompanying drawings and specific embodiments of the specification.
[0063] Embodiment 1: This embodiment provides a file encoding and decoding method based on byte dynamic transcoding, which implements the encoding and decoding operation of the file by dynamically obfuscating and decoding each byte of the file, as follows:
[0064] S1. File preprocessing: Preprocess the file with a character (IO) stream to obtain the total size of the file and the total size of the bytes occupied by the file name, and generate an obfuscated basic solution according to the total size of the file and the total number of bytes occupied by the file name;
[0065] S2. Dynamic calculation of obfuscation key: Calculate the obfuscation basic solution according to the size of the byte buffer, dynamically generate the obfuscation key code values of all bytes in the buffer, and obtain the dynamic obfuscation key array;
[0066] S3, file encoding and decoding: Encode and decode the bytes in the buffer based on the dynamic obfuscation key array, that is, transcode the bytes according to the byte obfuscation key code value to achieve the encoding and decoding operation of the entire file.
[0067] The file preprocessing in step S1 of this embodiment mainly includes obtaining the name and total size of the file through the IO stream, and calculating the basic solution of the obfuscation based on the total size of the file and the sum of the byte values occupied by the name, and using the basic solution as the basic value for the dynamic calculation of the obfuscation value in step S2. Since the basic solution is calculated and obtained based on the total size and name of the file, and serves as the basic solution for the byte obfuscation of the entire file, after the file is encrypted, if the encrypted file is modified, including the modification of the file content and the file name, the total size of the file and the sum of the byte values occupied by the name will change, resulting in the failure of file decryption, thereby also realizing the anti-tampering function of the file.
[0068] The buffer size in step S2 of this embodiment is set to 4K by default, and supports dynamic adjustment; the details are as follows:
[0069] S201, initialize a numeric array with a capacity of 4*1024 and a default value of 0;
[0070] S202, generating an obfuscation key code value for the numeric array according to the obfuscation key basic solution and the position subscript of the numeric array, and storing it in the corresponding position of the numeric data to generate an obfuscation key array.
[0071] The method for calculating the obfuscated key value in this embodiment adopts the method of finding the quotient of the array subscript and the maximum value represented by a byte and performing a modulus operation.
[0072] The file encoding and decoding in step S3 of this embodiment is specifically as follows:
[0073] S301, setting a file processing buffer array, the size of the buffer array being set to be consistent with the size of the cache area dynamically calculated for the obfuscation key;
[0074] S302, reading the file byte stream into the buffer in the form of character stream;
[0075] S303, performing byte obfuscation encoding and decoding on the bytes in the buffer; wherein the byte obfuscation encoding and decoding rule is to perform a joint calculation on the byte buffer and the obfuscation key array to obtain the obfuscation key code value.
[0076] In step S303 of this embodiment, the byte obfuscation encoding and decoding of bytes in the buffer are specifically as follows:
[0077] ①According to the subscript position of the buffer array, obtain the obfuscated value of the obfuscated key array;
[0078] ② Encode and decode the original bytes and obfuscated values at the corresponding positions in the buffer, and replace the original values with the values decoded by the encoder;
[0079] ③ Write the bytes of the corresponding buffer into the file in the form of a character stream, and repeat steps ① and ② until all bytes of the corresponding file are processed.
[0080] Embodiment 2: This embodiment provides a file encoding and decoding system based on byte dynamic transcoding, which is used to implement the file encoding and decoding method based on byte dynamic transcoding in Embodiment 1; the system includes:
[0081] A file preprocessing module is used to preprocess the file with a character (IO) stream, obtain the total size of the file and the total size of bytes occupied by the file name, and generate an obfuscated basic solution according to the total size of the file and the total number of bytes occupied by the file name;
[0082] The obfuscation key dynamic calculation module is used to calculate the obfuscation basic solution according to the size of the byte buffer, dynamically generate the obfuscation key values of all bytes in the buffer, and obtain the dynamic obfuscation key array;
[0083] The file encoding and decoding module is used to encode and decode the bytes in the buffer based on the dynamic obfuscation key array, that is, to transcode the bytes according to the byte obfuscation key code value to realize the encoding and decoding operation of the entire file.
[0084] The buffer size in this embodiment is set to 4K by default, and supports dynamic adjustment; the details are as follows:
[0085] ① Initialize a numeric array with a capacity of 4*1024 and a default value of 0;
[0086] ② Generate the obfuscation key code value for the numeric array according to the basic solution of the obfuscation key and the position subscript of the numeric array, and store it in the corresponding position of the numeric data to generate the obfuscation key array.
[0087] The method for calculating the obfuscated key value in this embodiment adopts the method of finding the quotient of the array subscript and the maximum value represented by a byte and performing a modulus operation.
[0088] The file encoding and decoding module in this embodiment includes:
[0089] The submodule is used to set the file processing buffer array. The size of the buffer array is consistent with the size of the cache area for dynamic calculation of the obfuscation key.
[0090] The reading submodule is used to read the file byte stream into the buffer in the form of character stream;
[0091] The byte encoding and decoding submodule is used to perform byte obfuscation encoding and decoding on bytes in the buffer; the byte obfuscation encoding and decoding rules are to perform joint calculations on the byte buffer and the obfuscation key array to obtain the obfuscation key code value; the details are as follows:
[0092] ①According to the subscript position of the buffer array, obtain the obfuscated value of the obfuscated key array;
[0093] ② Encode and decode the original bytes and obfuscated values at the corresponding positions in the buffer, and replace the original values with the values decoded by the encoder;
[0094] ③ Write the bytes of the corresponding buffer into the file in the form of a character stream, and repeat steps ① and ② until all bytes of the corresponding file are processed.
[0095] As attached Figure 1 As shown in the figure, the working process of the system is as follows:
[0096] (1) Perform file preprocessing through the file preprocessing module;
[0097] (2) Get the total file size and the total number of bytes occupied by the file name;
[0098] (3) Determine whether it is an empty file;
[0099] ①If yes, jump to step (9);
[0100] ②If not, proceed to step (4);
[0101] (4) Calculate the basic solution of the obfuscated key;
[0102] (5) Calculate the obfuscation buffer key array;
[0103] (6) Read the byte stream into the buffer;
[0104] (7) Replace the original bytes according to the obfuscation key;
[0105] (8) Determine whether all bytes of the file have been processed:
[0106] ①If yes, go to step (9);
[0107] ②If not, jump to step (6);
[0108] (9) End.
[0109] Embodiment 3: This embodiment also provides an electronic device, including: a memory and a processor;
[0110] Wherein, the memory stores computer-executable instructions;
[0111] The processor executes the computer-executable instructions stored in the memory, so that the processor executes the file encoding and decoding method based on byte dynamic transcoding in any embodiment of the present invention.
[0112] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The processor may be a microprocessor or any conventional processor, etc.
[0113] The memory can be used to store computer programs and / or modules. The processor realizes various functions of the electronic device by running or executing the computer programs and / or modules stored in the memory, and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required for a function, etc.; the data storage area can store data created according to the use of the terminal, etc. In addition, the memory can also include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (SMC), a secure digital (SD) card, a flash memory card, at least one disk storage period, a flash memory device, or other volatile solid-state storage devices.
[0114] Embodiment 4: This embodiment also provides a computer-readable storage medium, in which a plurality of instructions are stored, and the instructions are loaded by a processor, so that the processor executes the file encoding and decoding method based on byte dynamic transcoding in any embodiment of the present invention. Specifically, a system or device equipped with a storage medium can be provided, on which a software program code that implements the functions of any of the above embodiments is stored, and a computer (or CPU or MPU) of the system or device reads and executes the program code stored in the storage medium.
[0115] In this case, the program code itself read from the storage medium can realize the function of any one of the above-mentioned embodiments, and thus the program code and the storage medium storing the program code constitute a part of the present invention.
[0116] Examples of storage media for providing program code include floppy disks, hard disks, magneto-optical disks, optical disks (such as CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RYM, DVD-RW, DVD+RW), magnetic tapes, non-volatile memory cards, and ROMs. Alternatively, program code may be downloaded from a server computer via a communication network.
[0117] In addition, it should be clear that the functions of any of the above embodiments can be implemented not only by executing the program code read by the computer, but also by enabling an operating system operating on the computer to complete part or all of the actual operations based on instructions from the program code.
[0118] In addition, it can be understood that the program code read from the storage medium is written to a memory provided in an expansion board inserted into the computer or written to a memory provided in an expansion unit connected to the computer, and then based on the instructions of the program code, a CPU installed on the expansion board or the expansion unit is enabled to perform part or all of the actual operations, thereby realizing the functions of any of the above-mentioned embodiments.
[0119] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A file encoding and decoding method based on byte dynamic transcoding, characterized in that: This method implements the encoding and decoding operation of the file by dynamically obfuscating and decoding each byte of the file, as follows: File preprocessing: Preprocess the file with a character stream to obtain the total size of the file and the total size of the bytes occupied by the file name, and generate an obfuscated basic solution based on the total size of the file and the total number of bytes occupied by the file name; Dynamic calculation of obfuscation key: Calculate the obfuscation basic solution according to the size of the byte buffer, dynamically generate the obfuscation key code values of all bytes in the buffer, and obtain the dynamic obfuscation key array; File encoding and decoding: Encode and decode the bytes in the buffer based on the dynamic obfuscation key array, that is, transcode the bytes according to the byte obfuscation key code value to achieve the encoding and decoding operation of the entire file; The buffer size is set to 4K by default and supports dynamic adjustment; the details are as follows: Initialize a numeric array with a capacity of 4*1024 and a default value of 0; Generate an obfuscation key code value for the numeric array according to the basic solution of the obfuscation key and the position subscript of the numeric array, and store it in the corresponding position of the numeric data to generate an obfuscation key array; The obfuscated key value is calculated by taking the quotient of the array subscript and the maximum value represented by a byte and performing a modulus operation; The file encoding and decoding are as follows: Set the file processing buffer array. The size of the buffer array is consistent with the cache size of the obfuscation key dynamic calculation; Read the file byte stream into the buffer in the form of character stream; Performing byte obfuscation encoding and decoding on the bytes in the buffer; wherein the byte obfuscation encoding and decoding rules are to perform joint calculations on the byte buffer and the obfuscation key array to obtain the obfuscation key code value; The byte-by-byte encoding and decoding in the buffer are as follows: ①According to the subscript position of the buffer array, obtain the obfuscated value of the obfuscated key array; ② Encode and decode the original bytes and obfuscated values at the corresponding positions in the buffer, and replace the original values with the values decoded by the encoder; ③ Write the bytes of the corresponding buffer into the file in the form of a character stream, and repeat steps ① and ② until all bytes of the corresponding file are processed.
2. A file encoding and decoding system based on byte dynamic transcoding, characterized in that: The system is used to implement the file encoding and decoding method based on byte dynamic transcoding as claimed in claim 1; the system comprises: A file preprocessing module, used to preprocess the file with a character stream, obtain the total size of the file and the total size of bytes occupied by the file name, and generate an obfuscated basic solution according to the total size of the file and the total number of bytes occupied by the file name; The obfuscation key dynamic calculation module is used to calculate the obfuscation basic solution according to the size of the byte buffer, dynamically generate the obfuscation key values of all bytes in the buffer, and obtain the dynamic obfuscation key array; The file encoding and decoding module is used to encode and decode the bytes in the buffer based on the dynamic obfuscation key array, that is, to transcode the bytes according to the byte obfuscation key code value to realize the encoding and decoding operation of the entire file; The buffer size is set to 4K by default and supports dynamic adjustment; the details are as follows: Initialize a numeric array with a capacity of 4*1024 and a default value of 0; Generate an obfuscation key code value for the numeric array according to the basic solution of the obfuscation key and the position subscript of the numeric array, and store it in the corresponding position of the numeric data to generate an obfuscation key array; The obfuscated key value is calculated by taking the quotient of the array subscript and the maximum value represented by a byte and performing a modulus operation; The file encoding and decoding modules include: The submodule is used to set the file processing buffer array. The size of the buffer array is consistent with the size of the cache area for dynamic calculation of the obfuscation key. The reading submodule is used to read the file byte stream into the buffer in the form of character stream; The byte encoding and decoding submodule is used to perform byte obfuscation encoding and decoding on bytes in the buffer; the byte obfuscation encoding and decoding rules are to perform joint calculations on the byte buffer and the obfuscation key array to obtain the obfuscation key code value; the details are as follows: ①According to the subscript position of the buffer array, obtain the obfuscated value of the obfuscated key array; ② Encode and decode the original bytes and obfuscated values at the corresponding positions in the buffer, and replace the original values with the values decoded by the encoder; ③Write the bytes of the corresponding buffer into the file in the form of a character stream, and repeat steps ① and ② until all bytes of the corresponding file are processed; The working process of the system is as follows: (1) Preprocessing files through the file preprocessing module; (2) Get the total file size and the total number of bytes occupied by the file name; (3) Determine whether it is an empty file; ①If yes, jump to step (9); ②If not, proceed to step (4); (4) Calculate the basic solution of the obfuscated key; (5) Calculate the obfuscation buffer key array; (6) Read the byte stream into the buffer; (7) Replace the original bytes according to the obfuscation key; (8) Determine whether all bytes of the file have been processed: ①If yes, go to step (9); ②If not, jump to step (6); (9) End.
3. An electronic device, characterized in that: include: memory and at least one processor; Wherein, the memory stores a computer program; The at least one processor executes the computer program stored in the memory, so that the at least one processor executes the file encoding and decoding method based on byte dynamic transcoding as claimed in claim 1.
4. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which can be executed by a processor to implement the file encoding and decoding method based on byte dynamic transcoding as claimed in claim 1.
