CN-119995834-B - Collaborative optimization method and system for source-load storage resources
Abstract
The invention discloses a collaborative optimization method and a collaborative optimization system for source-load storage resources, which relate to the technical field of source-load storage resource optimization, after acquiring identity authentication information of a current pre-butt-joint user, an authentication execution unit constructs a magic encryption salt of the current pre-butt-joint user according to the magic salt stored in the authentication execution unit, the constructed magic encryption salt and the entered login password are used as two parameters to obtain identity ciphertext information by using an md5 algorithm, in the process, the generation process of the magic encryption salt is based on the construction of the last magic encryption salt, and corresponding magic characters are respectively obtained in different ways for the upper and lower letters and the numbers in the process of constructing the magic encryption salt, so that the finally obtained magic encryption salt has high collision resistance and safety, the safety in the identity authentication process is ensured, the safety for receiving the data of the source-charge storage resources in the collaborative optimization process of the source-charge storage resources is further ensured, and the optimization result is more accurate and efficient.
Inventors
- ZHAO LIANGUO
- XIA JIQING
- LI XIN
- LI LEI
- CHEN ZHUO
- ZHOU XUAN
Assignees
- 国网山东省电力公司费县供电公司
Dates
- Publication Date
- 20260508
- Application Date
- 20241220
Claims (10)
- 1. The source-charge storage resource collaborative optimization method is characterized by comprising the following steps of: The authentication execution unit extracts magic salt of a target power plant stored in the authentication execution unit after receiving transmitted identity authentication information of a current pre-butt user, wherein the identity authentication information comprises a login account number and a login password, and the initial magic salt is a 16-bit character consisting of a number, a case letter and a special character; step two, constructing the extracted magic salt according to a preset construction rule to obtain magic encryption salt of the identity authentication information; the authentication execution unit extracts a login account number and a login password from the identity authentication information respectively, takes the login password and magic encryption salt of the identity authentication information as two parameters, obtains a salt password of a current pre-butt-joint user by using an MD5 algorithm, and then obtains identity ciphertext information of the current pre-butt-joint user according to the salt password and the login account number; The source load storage cooperative management and control center extracts a login account and identity ciphertext information from the identity ciphertext information of the current pre-butt-joint user after receiving the identity ciphertext information of the current pre-butt-joint user, acquires an authorization password and magic salt corresponding to an authorization account consistent with the login account according to the login account, and restores and generates the identity ciphertext information of the current pre-butt-joint user according to the authorization password and the magic salt and a preset construction rule; and fifthly, carrying out consistency comparison on the restored identity ciphertext information and the extracted identity ciphertext information, and if the comparison is successful, opening the data transmission permission to the current pre-butting user.
- 2. The method for collaborative optimization of source-load storage resources according to claim 1, wherein the authentication execution unit updates magic salt stored in the target power plant; The source load storage cooperative management and control center stores the current authorization and authentication information of all authorized users passing authorization and authentication, wherein the authorization and authentication information comprises an authorization account number, an authorization password and magic salt.
- 3. The method for collaborative optimization of source and load storage resources according to claim 2, wherein in the fifth step, after opening the data transmission authority to the current pre-butt-joint user, the load storage collaborative management and control center updates the magic salt of the corresponding authorized user according to the digital magic salt recovered in the process of recovering the identity ciphertext information of the current pre-butt-joint user.
- 4. The collaborative optimization method for source and load storage resources according to claim 2, wherein the load storage collaborative management and control center generates an authentication pass instruction after opening a data transmission permission to a current pre-butt user, and the authentication execution unit updates the stored magic salt of the target power plant according to the digital magic salt of the identity authentication information after receiving the authentication pass instruction.
- 5. The method for collaborative optimization of source-load storage resources according to claim 1, wherein the construction rule of the magic encryption salt for obtaining the identity authentication information is as follows: s11, extracting all the characters which are non-numerical in the magic salt, and marking all the non-numerical characters forming the magic salt as A1, A2, aa and a more than or equal to 1 in sequence from left to right; S12, judging the character A1 to be non-numeric, judging the reference rolling direction of the character A1 to be backspacing if the character A1 is a capital English letter, generating a magic character of the character A1 according to a preset first generation rule, judging the reference rolling direction of the character A1 to be advancing if the character A2 is a lowercase English letter, and generating the magic character of the character A1 according to a preset second generation rule; S13, sequentially generating magic characters of the characters A2, A3 and Aa according to the S12, and splicing the magic characters of the characters A1, A2 and Aa according to the sequence of the characters A1, A2 and Aa to obtain the alphabetic magic salt of the identity authentication information; S14, extracting all the characters which are numbers in the magic salt, respectively marking the characters as D1, D2, dd, D is more than or equal to 1, combining any two of the characters as D1, D2, dd to obtain a plurality of groups of character combinations, de-duplicating the obtained plurality of groups of character combinations, and sequencing all the de-duplicated groups of character combinations according to the sequence from the small number to the large number, wherein the character combinations are sequentially marked as E1, E2, E, E is more than or equal to 1; s15, generating magic characters of the character combination E1 according to a preset third generation rule; S16, sequentially calculating and obtaining magic characters of character combinations E2, E3, and Ee according to S15, and splicing the magic characters of the character combinations E1, E2, and Ee according to the sequence of the character combinations E1, E2, and Ee to obtain digital magic salts of the identity authentication information; And S17, splicing the letter magic salt and the digital magic salt of the identity authentication information according to the sequence of the letter magic salt and the digital magic salt to obtain the magic encryption salt of the identity authentication information.
- 6. The collaborative optimization method for source-load storage resources according to claim 5, wherein S12, the first generation rule for generating the magic character of the character A1 is as follows: SS11, referring to an ASCII code comparison table, acquiring ASCII values corresponding to the characters A1 serving as control characters in the ASCII code comparison table, and taking the acquired ASCII values as rolling index values B1 of the characters A1; SS12, odd and even judging the rolling benchmarking value B1, if the rolling benchmarking value B1 is odd, judging that the benchmarking rolling direction of the character A1 is backward, if the rolling benchmarking value B1 is even, judging that the benchmarking rolling direction of the character A1 is forward; SS13, determining the scrolling direction of the character A1 by combining the reference scrolling direction and the target scrolling direction of the character A1, wherein if the reference scrolling direction and the target scrolling direction of the character A1 are consistent and are both backspacing, the second character positioned behind the character A1 is acquired from left to right as the magic character of the character A1 according to the sequence of 26 capital letters, and if the number of characters positioned behind the character A1 is less than 2, the cycle is acquired; If the reference rolling direction and the opposite rolling direction of the character A1 are inconsistent, namely one is forward and the other is backward, according to the sequence of 26 capital letters, the first character positioned in front of the character A1 is acquired from left to right as the magic character of the character A1, wherein if the number of the characters positioned in front of the character A1 is less than 1, the acquisition is circulated.
- 7. The collaborative optimization method for source and sink resources according to claim 5, wherein the third generation rule for generating the magic character of the character set E1 is as follows: S151, comparing the character combination E1 with the comparison standard quantity P1, wherein P1 is a preset value for judging whether the control character corresponding to the ASCII value of the character combination E1 is a letter or not; if the character combination E1 is more than or equal to the comparison standard quantity P1, judging that the reference rolling direction of the character combination E1 is a rollback, and generating magic characters of the character combination E1 according to a preset first digital combination generation rule; s152, if the character combination E1 is smaller than the comparison standard quantity P1, judging that the reference scrolling direction of the character combination E1 is forward, calculating and obtaining a control character F1 of the character combination E1 by using a formula F1=E1+P2, and generating magic characters of the character combination E1 according to a preset second digital combination generation rule.
- 8. The method for collaborative optimization of source-load resources according to claim 7, wherein the first numerical combination generation rule for generating the magic character of the character combination E1 is as follows: SS31, referring to an ASCII code comparison table, acquiring a character combination E1 as a control character F1 corresponding to an ASCII value, then judging whether the control character F1 is a capital letter or a lowercase letter, if the control character F1 is a capital letter, judging that the reference rolling direction of the control character F1 is a backspacing, generating a magic character of the control character F1 according to a first generation rule, and if the control character F1 is a lowercase letter, judging that the reference rolling direction of the control character F1 is a forward, and generating a magic character of the control character F1 according to a second generation rule; And SS32, referring to an ASCII code comparison table, acquiring an ASCII value corresponding to the magic character serving as a control character, and taking the ASCII value as the magic character of the character combination E1.
- 9. The collaborative optimization method for source and sink resources according to claim 7, wherein S152 generates the second numerical combination generation rule of the magic characters of the character combination E1 as follows: SS41, judging whether the control character F1 is capital letter or lowercase letter, if the control character F1 is capital letter, judging that the reference rolling direction of the control character F1 is backspace, generating magic character of the control character F1 according to the first generation rule, if the control character F1 is lowercase letter, judging that the reference rolling direction of the control character F1 is forward, and generating magic character of the control character F1 according to the second generation rule; SS42, referring to an ASCII code comparison table, obtaining an ASCII value corresponding to the magic character as a control character, and taking the ASCII value as the magic character of the character combination E1; wherein P2 is a preset filling standard quantity, P2 is a preset value, and the control character corresponding to the ASCII value used as the character combination E1 is capital letter or lowercase letter.
- 10. A source load storage resource collaborative optimization system, comprising: The authentication acquisition unit is used for acquiring identity authentication information which is entered by the current pre-docking user, wherein the identity authentication information comprises a login account number and a login password; The authentication execution unit is used for extracting the magic salt of the target power plant stored in the authentication execution unit after receiving the identity authentication information input by the current pre-butt user, and constructing the extracted magic salt according to a preset construction rule to obtain the magic encryption salt of the identity authentication information, wherein the initial magic salt is a 16-bit character consisting of numbers, case letters and special characters; The authentication execution unit is also used for respectively extracting a login account number and a login password from the identity authentication information, respectively taking the login password and the magic encryption salt of the identity authentication information as two parameters, obtaining the salt value password of the current pre-butt-joint user by using an MD5 algorithm, and then obtaining the identity ciphertext information of the current pre-butt-joint user according to the salt value password and the login account number; The source load storage cooperative management and control center is used for extracting a login account and identity ciphertext information from the identity ciphertext information of the current pre-butt-joint user after receiving the identity ciphertext information of the current pre-butt-joint user, acquiring an authorization password and magic salt corresponding to an authorization account consistent with the login account according to the login account, and restoring and generating the identity ciphertext information of the current pre-butt-joint user according to the authorization password and the magic salt and a preset construction rule; the source load storage cooperative management and control center is also used for carrying out consistency comparison on the restored identity ciphertext information and the extracted identity ciphertext information, and if the comparison is successful, the data transmission permission is opened to the current pre-butt joint user.
Description
Collaborative optimization method and system for source-load storage resources Technical Field The invention relates to the technical field of source load storage resource optimization, in particular to a source load storage resource collaborative optimization method and system. Background In the field of energy sources at present, along with urgent demands for improving energy utilization efficiency, enhancing energy supply stability and large-scale access of renewable energy sources, the collaborative optimization of source-charge storage resources becomes a key research and development direction, and aims to realize efficient, stable and sustainable operation of an energy system through comprehensive integration and accurate regulation and control of power generation resources (sources), electricity loads (charges) and energy storage facilities (storages); In the collaborative optimization process, the source load and storage resource data from all places need to be widely received, the data sources are widely and dispersedly covered in power plants (comprising traditional thermal power stations, hydroelectric power stations, wind power stations, photovoltaic power stations and the like) in different areas, various industrial power areas, commercial power stations, resident communities, distributed energy storage devices and the like; At present, the existing authentication modes in all places mainly adopt to add salt into a typed login password and enhance the complexity and anti-cracking capability of the password by using an MD5 algorithm; in the authentication system, the salt function is crucial, and the same password generates different hash results under the action of different salt values by combining with the password, so that the difficulty of violent cracking of the password is greatly increased; however, due to the extremely high requirements on security, the salt needs to be dynamically updated to cope with the changing security threats; the method for ensuring consistency of the cloud and the local salt at present is that the cloud needs to be transmitted once every time when the salt is updated, the frequent data transmission process greatly increases the leakage risk of the special channel, and once the special channel is intercepted by a malicious attacker, the salt value leakage can be caused, the whole authentication system is broken, and the transmission safety and the integrity of the source charge storage resource data can be endangered; In order to solve the above problems, the present invention proposes a solution. Disclosure of Invention The invention aims to provide a source-load storage resource collaborative optimization method and a source-load storage resource collaborative optimization system, which aim to solve the problems in the background technology; the aim of the invention can be achieved by the following technical scheme: A collaborative optimization method for source load storage resources comprises the following steps: the authentication execution unit extracts magic salt of the target power plant stored in the authentication execution unit after receiving the transmitted identity authentication information of the current pre-butt user, wherein the identity authentication information comprises a login account number and a login password; step two, judging all the non-digital characters forming the magic salt one by one, and selecting a preset first generation rule or a preset second generation rule to generate magic characters corresponding to the non-digital characters by judging whether the non-digital characters are uppercase English letters or lowercase English letters; extracting all the digital characters of the magic salt, combining any two digital characters to obtain a plurality of groups of character combinations, de-duplicating the plurality of groups of character combinations, and generating corresponding magic characters for all the de-duplicated character combinations according to a preset third generation rule; according to the obtained magic characters of all the non-digital characters and the magic characters of all character combinations after duplication removal, constructing and obtaining the magic encryption salt of the identity authentication information; the authentication execution unit extracts a login account number and a login password from the identity authentication information respectively, takes the login password and magic encryption salt of the identity authentication information as two parameters, obtains a salt password of a current pre-butt-joint user by using an MD5 algorithm, and then obtains identity ciphertext information of the current pre-butt-joint user according to the salt password and the login account number; The source load storage cooperative management and control center extracts a login account and identity ciphertext information from the identity ciphertext information of the current pre-butt-joint user after rece