package cn.com.victorysoft.business.config;


import cn.com.victorysoft.business.param.Params;
import cn.com.victorysoft.business.utils.JwtUtilsA;
import cn.hutool.core.codec.Base64;
import cn.hutool.core.date.DateTime;
import cn.hutool.crypto.Mode;
import cn.hutool.crypto.Padding;
import cn.hutool.crypto.symmetric.AES;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.crypto.spec.IvParameterSpec;
import javax.crypto.spec.SecretKeySpec;
import java.nio.charset.StandardCharsets;
import java.util.HashMap;
import java.util.Map;


/**
 * @author wangyong
 * @since 2021-10-16
 */
@Api(tags = "login页账号登录")
@RestController
@RequestMapping("login")
public class EncryptionController {


    /**
     * 密码
     */
    String password = "Cyczsk@1306";
    String gdaopassword = "Csm2718973";
    String xhcycpassword = "Xhcyc@2022";
    String xhpassword = "Zsyx@2022";
    String gljpassword = "Cyc8775005";

    /**
     * 账户名
     */
    String sc01 = "sc01";
    String sc02 = "sc02";
    String sc03 = "sc03";
    String sc04 = "sc04";
    String sc05 = "sc05";
    String sc06 = "sc06";
    String sc07 = "sc07";
    String scgys = "scgys";
    String scdzs = "scdzs";
    String glj = "glj";
    String xhs127 = "xhs127";
    String xhxhz = "xhxhz";
    String xhcx = "xhcx";
    String xhcd = "xhcd";
    String xhhx = "xhhx";
    String xhsn = "xhsn";
    String xhlh = "xhlh";
    String xhwg = "xhwg";
    String xhcg = "xhcg";
    String xhcyc = "xhcyc";
    String gdaocyc = "gdaocyc";
    String bncyc = "bncyc";
    String dsgs = "dsgs";
    String hkcyc = "hkcyc";
    String gdcyc = "gdcyc";
    String dxcyc = "dxcyc";
    String clcyc = "clcyc";
    String lpcyc = "lpcyc";
    String zxcyc = "zxcyc";
    String hycyc = "hycyc";
    String lsgs = "lsgs";
    String xcgs = "xcgs";
    String sykfzx = "sykfzx";
    String lmgs = "lmgs";
    String zsgs = "zsgs";
    String dxya = "dxya";
    String dxyj = "dxyj";
    String dxby = "dxby";
    String dxyx = "dxyx";
    String dxgl = "dxgl";
    String dxxe = "dxxe";
    String dxye = "dxye";
    String dxyy = "dxyy";
    String dxxs = "dxxs";
    String clcd = "clcd";
    String clzl = "clzl";
    String clgq = "clgq";
    String cldlh = "cldlh";
    String cllb = "cllb";
    String clln = "clln";
    String clcx = "clcx";
    String cljj = "cljj";
    String bnjq = "bnjq";
    String bnyq = "bnyq";
    String bnwq = "bnwq";
    String bnbq = "bnbq";
    String bneq = "bneq";
    String bnqq = "bnqq";
    String bnlq = "bnlq";
    String bnsq = "bnsq";
    String bnsiq = "bnsiq";
    String lpsq = "lpsq";
    String lplq = "lplq";
    String lpqq = "lpqq";
    String lpyq = "lpyq";
    String lpsiq = "lpsiq";
    String lpwq = "lpwq";
    String lpeq = "lpeq";
    String lpbq = "lpbq";
    String hksiq = "hksiq";
    String hkwq = "hkwq";
    String hkjq = "hkjq";
    String hksq = "hksq";
    String hklq = "hklq";
    String hkqq = "hkqq";
    String hkbq = "hkbq";
    String hkshiq = "hkshiq";
    String hkyq = "hkyq";
    String gdsq = "gdsq";
    String gdwq = "gdwq";
    String gdlq = "gdlq";
    String gdeq = "gdeq";
    String gdsiq = "gdsiq";
    String gdyq = "gdyq";
    String gdqq = "gdqq";
    String gdaoyq = "gdaoyq";
    String gdaosiq = "gdaosiq";
    String gdaolq = "gdaolq";
    String gdaobq = "gdaobq";
    String gdaosq = "gdaosq";
    String gdaowq = "gdaowq";
    String gdaojq = "gdaojq";
    String gdaoeq = "gdaoeq";
    String gdaoqq = "gdaoqq";
    String gdaoshiq = "gdaoshiq";
    String zxyq = "zxyq";
    String zxsq = "zxsq";
    String zxsiq = "zxsiq";
    String zxeq = "zxeq";
    String hyhy = "hyhy";
    String hyhs = "hyhs";
    String hyhsi = "hyhsi";
    String hyhe = "hyhe";
    String lsls = "lsls";
    String lslf = "lslf";
    String lslp = "lslp";
    String lsly = "lsly";
    String lsla = "lsla";
    String xcsq = "xcsq";
    String xcyq = "xcyq";
    String xceq = "xceq";
    String sysh = "sysh";
    String syqd = "syqd";
    String sysy = "sysy";
    String sysl = "sysl";
    String sysa = "sysa";
    String sysk = "sysk";
    String sysf = "sysf";
    String syskai = "syskai";
    String dsnz = "dsnz";
    String dswd = "dswd";
    String dsgq = "dsgq";
    String dshk = "dshk";
    String dswb = "dswb";
    String dsjj = "dsjj";
    String dssx = "dssx";
    String dsxy = "dsxy";
    String dsht = "dsht";
    String dsbb = "dsbb";
    String lmbn = "lmbn";
    String lmjb = "lmjb";
    String lmbx = "lmbx";
    String lmly = "lmly";
    String lmhm = "lmhm";
    String lmsh = "lmsh";
    String lmqn = "lmqn";
    String zshm = "zshm";
    String zsbc = "zsbc";
    String zsbb = "zsbb";


    Map<String, Long> map = new HashMap<>();

    @PostMapping("/encryption")
    @ApiOperation("登录账号加密")
    public String encryption(@RequestBody Params params) {

        String token = "";
        String name = params.getUsername();
        String decryptAES = this.decryptAES(params.getPassword(), "ClalHpx5DP16GgBL");

        if (map.get(name) == null || map.get(name) < 5) {
            token = this.signIn(name, decryptAES, map.get(name));
        } else {
            if (DateTime.now().getTime() < (map.get(name) + 300000)) {
                token = "exceededTimes";
            } else {
                map.put(name, 0L);
                token = this.signIn(name, decryptAES, map.get(name));
            }
        }
        return token;
    }

    /**
     * 解密
     */
    private String decryptAES(String data, String pass) {
        AES aes = new AES(Mode.CBC, Padding.NoPadding,
                new SecretKeySpec(pass.getBytes(), "AES"),
                new IvParameterSpec(pass.getBytes()));
        byte[] result = aes.decrypt(Base64.decode(data.getBytes(StandardCharsets.UTF_8)));
        return new String(result, StandardCharsets.UTF_8);
    }


    /**
     * 验证
     */
    private String signIn(String name, String decryptAES, Long integer) {
        String token = "";
        if (integer == null) {
            integer = 0L;
        }
        if (integer != 4) {
            map.put(name, integer + 1);
            if ((name.equals(sc01) && decryptAES.trim().equals(password))
                    || (name.equals(sc02) && decryptAES.trim().equals(password))
                    || (name.equals(sc03) && decryptAES.trim().equals(password))
                    || (name.equals(sc04) && decryptAES.trim().equals(password))
                    || (name.equals(sc05) && decryptAES.trim().equals(password))
                    || (name.equals(sc06) && decryptAES.trim().equals(password))
                    || (name.equals(sc07) && decryptAES.trim().equals(password))
                    || (name.equals(scgys) && decryptAES.trim().equals(password))
                    || (name.equals(scdzs) && decryptAES.trim().equals(password))
                    || (name.equals(glj) && decryptAES.trim().equals(gljpassword))
                    || (name.equals(xhs127) && decryptAES.trim().equals(xhpassword))
                    || (name.equals(xhxhz) && decryptAES.trim().equals(xhpassword))
                    || (name.equals(xhcx) && decryptAES.trim().equals(xhpassword))
                    || (name.equals(xhcd) && decryptAES.trim().equals(xhpassword))
                    || (name.equals(xhhx) && decryptAES.trim().equals(xhpassword))
                    || (name.equals(xhsn) && decryptAES.trim().equals(xhpassword))
                    || (name.equals(xhlh) && decryptAES.trim().equals(xhpassword))
                    || (name.equals(xhwg) && decryptAES.trim().equals(xhpassword))
                    || (name.equals(xhcg) && decryptAES.trim().equals(xhpassword))
                    || (name.equals(xhcyc) && decryptAES.trim().equals(xhcycpassword))
                    || (name.equals(gdaocyc) && decryptAES.trim().equals(gdaopassword))
                    || (name.equals(bncyc) && decryptAES.trim().equals(password))
                    || (name.equals(dsgs) && decryptAES.trim().equals(password))
                    || (name.equals(hkcyc) && decryptAES.trim().equals(password))
                    || (name.equals(gdcyc) && decryptAES.trim().equals(password))
                    || (name.equals(dxcyc) && decryptAES.trim().equals(password))
                    || (name.equals(clcyc) && decryptAES.trim().equals(password))
                    || (name.equals(lpcyc) && decryptAES.trim().equals(password))
                    || (name.equals(zxcyc) && decryptAES.trim().equals(password))
                    || (name.equals(hycyc) && decryptAES.trim().equals(password))
                    || (name.equals(lsgs) && decryptAES.trim().equals(password))
                    || (name.equals(xcgs) && decryptAES.trim().equals(password))
                    || (name.equals(sykfzx) && decryptAES.trim().equals(password))
                    || (name.equals(lmgs) && decryptAES.trim().equals(password))
                    || (name.equals(zsgs) && decryptAES.trim().equals(password))
                    || (name.equals(dxya) && decryptAES.trim().equals(password))
                    || (name.equals(dxyj) && decryptAES.trim().equals(password))
                    || (name.equals(dxby) && decryptAES.trim().equals(password))
                    || (name.equals(dxyx) && decryptAES.trim().equals(password))
                    || (name.equals(dxgl) && decryptAES.trim().equals(password))
                    || (name.equals(dxxe) && decryptAES.trim().equals(password))
                    || (name.equals(dxye) && decryptAES.trim().equals(password))
                    || (name.equals(dxyy) && decryptAES.trim().equals(password))
                    || (name.equals(dxxs) && decryptAES.trim().equals(password))
                    || (name.equals(clcd) && decryptAES.trim().equals(password))
                    || (name.equals(clzl) && decryptAES.trim().equals(password))
                    || (name.equals(clgq) && decryptAES.trim().equals(password))
                    || (name.equals(cldlh) && decryptAES.trim().equals(password))
                    || (name.equals(cllb) && decryptAES.trim().equals(password))
                    || (name.equals(clln) && decryptAES.trim().equals(password))
                    || (name.equals(clcx) && decryptAES.trim().equals(password))
                    || (name.equals(cljj) && decryptAES.trim().equals(password))
                    || (name.equals(bnjq) && decryptAES.trim().equals(password))
                    || (name.equals(bnyq) && decryptAES.trim().equals(password))
                    || (name.equals(bnwq) && decryptAES.trim().equals(password))
                    || (name.equals(bnbq) && decryptAES.trim().equals(password))
                    || (name.equals(bneq) && decryptAES.trim().equals(password))
                    || (name.equals(bnqq) && decryptAES.trim().equals(password))
                    || (name.equals(bnlq) && decryptAES.trim().equals(password))
                    || (name.equals(bnsq) && decryptAES.trim().equals(password))
                    || (name.equals(bnsiq) && decryptAES.trim().equals(password))
                    || (name.equals(lpsq) && decryptAES.trim().equals(password))
                    || (name.equals(lplq) && decryptAES.trim().equals(password))
                    || (name.equals(lpqq) && decryptAES.trim().equals(password))
                    || (name.equals(lpyq) && decryptAES.trim().equals(password))
                    || (name.equals(lpsiq) && decryptAES.trim().equals(password))
                    || (name.equals(lpwq) && decryptAES.trim().equals(password))
                    || (name.equals(lpeq) && decryptAES.trim().equals(password))
                    || (name.equals(lpbq) && decryptAES.trim().equals(password))
                    || (name.equals(hksiq) && decryptAES.trim().equals(password))
                    || (name.equals(hkwq) && decryptAES.trim().equals(password))
                    || (name.equals(hkjq) && decryptAES.trim().equals(password))
                    || (name.equals(hksq) && decryptAES.trim().equals(password))
                    || (name.equals(hklq) && decryptAES.trim().equals(password))
                    || (name.equals(hkqq) && decryptAES.trim().equals(password))
                    || (name.equals(hkbq) && decryptAES.trim().equals(password))
                    || (name.equals(hkshiq) && decryptAES.trim().equals(password))
                    || (name.equals(hkyq) && decryptAES.trim().equals(password))
                    || (name.equals(gdsq) && decryptAES.trim().equals(password))
                    || (name.equals(gdwq) && decryptAES.trim().equals(password))
                    || (name.equals(gdlq) && decryptAES.trim().equals(password))
                    || (name.equals(gdeq) && decryptAES.trim().equals(password))
                    || (name.equals(gdsiq) && decryptAES.trim().equals(password))
                    || (name.equals(gdyq) && decryptAES.trim().equals(password))
                    || (name.equals(gdqq) && decryptAES.trim().equals(password))
                    || (name.equals(gdaoyq) && decryptAES.trim().equals(password))
                    || (name.equals(gdaosiq) && decryptAES.trim().equals(password))
                    || (name.equals(gdaolq) && decryptAES.trim().equals(password))
                    || (name.equals(gdaobq) && decryptAES.trim().equals(password))
                    || (name.equals(gdaosq) && decryptAES.trim().equals(password))
                    || (name.equals(gdaowq) && decryptAES.trim().equals(password))
                    || (name.equals(gdaojq) && decryptAES.trim().equals(password))
                    || (name.equals(gdaoeq) && decryptAES.trim().equals(password))
                    || (name.equals(gdaoqq) && decryptAES.trim().equals(password))
                    || (name.equals(gdaoshiq) && decryptAES.trim().equals(password))
                    || (name.equals(zxyq) && decryptAES.trim().equals(password))
                    || (name.equals(zxsq) && decryptAES.trim().equals(password))
                    || (name.equals(zxsiq) && decryptAES.trim().equals(password))
                    || (name.equals(zxeq) && decryptAES.trim().equals(password))
                    || (name.equals(hyhy) && decryptAES.trim().equals(password))
                    || (name.equals(hyhs) && decryptAES.trim().equals(password))
                    || (name.equals(hyhsi) && decryptAES.trim().equals(password))
                    || (name.equals(hyhe) && decryptAES.trim().equals(password))
                    || (name.equals(lsls) && decryptAES.trim().equals(password))
                    || (name.equals(lslf) && decryptAES.trim().equals(password))
                    || (name.equals(lslp) && decryptAES.trim().equals(password))
                    || (name.equals(lsly) && decryptAES.trim().equals(password))
                    || (name.equals(lsla) && decryptAES.trim().equals(password))
                    || (name.equals(xcsq) && decryptAES.trim().equals(password))
                    || (name.equals(xcyq) && decryptAES.trim().equals(password))
                    || (name.equals(xceq) && decryptAES.trim().equals(password))
                    || (name.equals(sysh) && decryptAES.trim().equals(password))
                    || (name.equals(syqd) && decryptAES.trim().equals(password))
                    || (name.equals(sysy) && decryptAES.trim().equals(password))
                    || (name.equals(sysl) && decryptAES.trim().equals(password))
                    || (name.equals(sysa) && decryptAES.trim().equals(password))
                    || (name.equals(sysk) && decryptAES.trim().equals(password))
                    || (name.equals(sysf) && decryptAES.trim().equals(password))
                    || (name.equals(syskai) && decryptAES.trim().equals(password))
                    || (name.equals(dsnz) && decryptAES.trim().equals(password))
                    || (name.equals(dswd) && decryptAES.trim().equals(password))
                    || (name.equals(dsgq) && decryptAES.trim().equals(password))
                    || (name.equals(dshk) && decryptAES.trim().equals(password))
                    || (name.equals(dswb) && decryptAES.trim().equals(password))
                    || (name.equals(dsjj) && decryptAES.trim().equals(password))
                    || (name.equals(dssx) && decryptAES.trim().equals(password))
                    || (name.equals(dsxy) && decryptAES.trim().equals(password))
                    || (name.equals(dsht) && decryptAES.trim().equals(password))
                    || (name.equals(dsbb) && decryptAES.trim().equals(password))
                    || (name.equals(lmbn) && decryptAES.trim().equals(password))
                    || (name.equals(lmjb) && decryptAES.trim().equals(password))
                    || (name.equals(lmbx) && decryptAES.trim().equals(password))
                    || (name.equals(lmly) && decryptAES.trim().equals(password))
                    || (name.equals(lmhm) && decryptAES.trim().equals(password))
                    || (name.equals(lmsh) && decryptAES.trim().equals(password))
                    || (name.equals(lmqn) && decryptAES.trim().equals(password))
                    || (name.equals(zshm) && decryptAES.trim().equals(password))
                    || (name.equals(zsbc) && decryptAES.trim().equals(password))
                    || (name.equals(zsbb) && decryptAES.trim().equals(password))
            ) {
                map.put(name, 0L);
                token = JwtUtilsA.createToken(name);
            } else {
                token = "loginFailed";
            }
        } else {
            map.put(name, DateTime.now().getTime());
                    if ((name.equals(sc01) && decryptAES.trim().equals(password))
                    || (name.equals(sc02) && decryptAES.trim().equals(password))
                    || (name.equals(sc03) && decryptAES.trim().equals(password))
                    || (name.equals(sc04) && decryptAES.trim().equals(password))
                    || (name.equals(sc05) && decryptAES.trim().equals(password))
                    || (name.equals(sc06) && decryptAES.trim().equals(password))
                    || (name.equals(sc07) && decryptAES.trim().equals(password))
                    || (name.equals(scgys) && decryptAES.trim().equals(password))
                    || (name.equals(scdzs) && decryptAES.trim().equals(password))
                    || (name.equals(glj) && decryptAES.trim().equals(gljpassword))
                    || (name.equals(xhs127) && decryptAES.trim().equals(xhpassword))
                    || (name.equals(xhxhz) && decryptAES.trim().equals(xhpassword))
                    || (name.equals(xhcx) && decryptAES.trim().equals(xhpassword))
                    || (name.equals(xhcd) && decryptAES.trim().equals(xhpassword))
                    || (name.equals(xhhx) && decryptAES.trim().equals(xhpassword))
                    || (name.equals(xhsn) && decryptAES.trim().equals(xhpassword))
                    || (name.equals(xhlh) && decryptAES.trim().equals(xhpassword))
                    || (name.equals(xhwg) && decryptAES.trim().equals(xhpassword))
                    || (name.equals(xhcg) && decryptAES.trim().equals(xhpassword))
                    || (name.equals(xhcyc) && decryptAES.trim().equals(xhcycpassword))
                    || (name.equals(gdaocyc) && decryptAES.trim().equals(gdaopassword))
                    || (name.equals(bncyc) && decryptAES.trim().equals(password))
                    || (name.equals(dsgs) && decryptAES.trim().equals(password))
                    || (name.equals(hkcyc) && decryptAES.trim().equals(password))
                    || (name.equals(gdcyc) && decryptAES.trim().equals(password))
                    || (name.equals(dxcyc) && decryptAES.trim().equals(password))
                    || (name.equals(clcyc) && decryptAES.trim().equals(password))
                    || (name.equals(lpcyc) && decryptAES.trim().equals(password))
                    || (name.equals(zxcyc) && decryptAES.trim().equals(password))
                    || (name.equals(hycyc) && decryptAES.trim().equals(password))
                    || (name.equals(lsgs) && decryptAES.trim().equals(password))
                    || (name.equals(xcgs) && decryptAES.trim().equals(password))
                    || (name.equals(sykfzx) && decryptAES.trim().equals(password))
                    || (name.equals(lmgs) && decryptAES.trim().equals(password))
                    || (name.equals(zsgs) && decryptAES.trim().equals(password))
                    || (name.equals(dxya) && decryptAES.trim().equals(password))
                    || (name.equals(dxyj) && decryptAES.trim().equals(password))
                    || (name.equals(dxby) && decryptAES.trim().equals(password))
                    || (name.equals(dxyx) && decryptAES.trim().equals(password))
                    || (name.equals(dxgl) && decryptAES.trim().equals(password))
                    || (name.equals(dxxe) && decryptAES.trim().equals(password))
                    || (name.equals(dxye) && decryptAES.trim().equals(password))
                    || (name.equals(dxyy) && decryptAES.trim().equals(password))
                    || (name.equals(dxxs) && decryptAES.trim().equals(password))
                    || (name.equals(clcd) && decryptAES.trim().equals(password))
                    || (name.equals(clzl) && decryptAES.trim().equals(password))
                    || (name.equals(clgq) && decryptAES.trim().equals(password))
                    || (name.equals(cldlh) && decryptAES.trim().equals(password))
                    || (name.equals(cllb) && decryptAES.trim().equals(password))
                    || (name.equals(clln) && decryptAES.trim().equals(password))
                    || (name.equals(clcx) && decryptAES.trim().equals(password))
                    || (name.equals(cljj) && decryptAES.trim().equals(password))
                    || (name.equals(bnjq) && decryptAES.trim().equals(password))
                    || (name.equals(bnyq) && decryptAES.trim().equals(password))
                    || (name.equals(bnwq) && decryptAES.trim().equals(password))
                    || (name.equals(bnbq) && decryptAES.trim().equals(password))
                    || (name.equals(bneq) && decryptAES.trim().equals(password))
                    || (name.equals(bnqq) && decryptAES.trim().equals(password))
                    || (name.equals(bnlq) && decryptAES.trim().equals(password))
                    || (name.equals(bnsq) && decryptAES.trim().equals(password))
                    || (name.equals(bnsiq) && decryptAES.trim().equals(password))
                    || (name.equals(lpsq) && decryptAES.trim().equals(password))
                    || (name.equals(lplq) && decryptAES.trim().equals(password))
                    || (name.equals(lpqq) && decryptAES.trim().equals(password))
                    || (name.equals(lpyq) && decryptAES.trim().equals(password))
                    || (name.equals(lpsiq) && decryptAES.trim().equals(password))
                    || (name.equals(lpwq) && decryptAES.trim().equals(password))
                    || (name.equals(lpeq) && decryptAES.trim().equals(password))
                    || (name.equals(lpbq) && decryptAES.trim().equals(password))
                    || (name.equals(hksiq) && decryptAES.trim().equals(password))
                    || (name.equals(hkwq) && decryptAES.trim().equals(password))
                    || (name.equals(hkjq) && decryptAES.trim().equals(password))
                    || (name.equals(hksq) && decryptAES.trim().equals(password))
                    || (name.equals(hklq) && decryptAES.trim().equals(password))
                    || (name.equals(hkqq) && decryptAES.trim().equals(password))
                    || (name.equals(hkbq) && decryptAES.trim().equals(password))
                    || (name.equals(hkshiq) && decryptAES.trim().equals(password))
                    || (name.equals(hkyq) && decryptAES.trim().equals(password))
                    || (name.equals(gdsq) && decryptAES.trim().equals(password))
                    || (name.equals(gdwq) && decryptAES.trim().equals(password))
                    || (name.equals(gdlq) && decryptAES.trim().equals(password))
                    || (name.equals(gdeq) && decryptAES.trim().equals(password))
                    || (name.equals(gdsiq) && decryptAES.trim().equals(password))
                    || (name.equals(gdyq) && decryptAES.trim().equals(password))
                    || (name.equals(gdqq) && decryptAES.trim().equals(password))
                    || (name.equals(gdaoyq) && decryptAES.trim().equals(password))
                    || (name.equals(gdaosiq) && decryptAES.trim().equals(password))
                    || (name.equals(gdaolq) && decryptAES.trim().equals(password))
                    || (name.equals(gdaobq) && decryptAES.trim().equals(password))
                    || (name.equals(gdaosq) && decryptAES.trim().equals(password))
                    || (name.equals(gdaowq) && decryptAES.trim().equals(password))
                    || (name.equals(gdaojq) && decryptAES.trim().equals(password))
                    || (name.equals(gdaoeq) && decryptAES.trim().equals(password))
                    || (name.equals(gdaoqq) && decryptAES.trim().equals(password))
                    || (name.equals(gdaoshiq) && decryptAES.trim().equals(password))
                    || (name.equals(zxyq) && decryptAES.trim().equals(password))
                    || (name.equals(zxsq) && decryptAES.trim().equals(password))
                    || (name.equals(zxsiq) && decryptAES.trim().equals(password))
                    || (name.equals(zxeq) && decryptAES.trim().equals(password))
                    || (name.equals(hyhy) && decryptAES.trim().equals(password))
                    || (name.equals(hyhs) && decryptAES.trim().equals(password))
                    || (name.equals(hyhsi) && decryptAES.trim().equals(password))
                    || (name.equals(hyhe) && decryptAES.trim().equals(password))
                    || (name.equals(lsls) && decryptAES.trim().equals(password))
                    || (name.equals(lslf) && decryptAES.trim().equals(password))
                    || (name.equals(lslp) && decryptAES.trim().equals(password))
                    || (name.equals(lsly) && decryptAES.trim().equals(password))
                    || (name.equals(lsla) && decryptAES.trim().equals(password))
                    || (name.equals(xcsq) && decryptAES.trim().equals(password))
                    || (name.equals(xcyq) && decryptAES.trim().equals(password))
                    || (name.equals(xceq) && decryptAES.trim().equals(password))
                    || (name.equals(sysh) && decryptAES.trim().equals(password))
                    || (name.equals(syqd) && decryptAES.trim().equals(password))
                    || (name.equals(sysy) && decryptAES.trim().equals(password))
                    || (name.equals(sysl) && decryptAES.trim().equals(password))
                    || (name.equals(sysa) && decryptAES.trim().equals(password))
                    || (name.equals(sysk) && decryptAES.trim().equals(password))
                    || (name.equals(sysf) && decryptAES.trim().equals(password))
                    || (name.equals(syskai) && decryptAES.trim().equals(password))
                    || (name.equals(dsnz) && decryptAES.trim().equals(password))
                    || (name.equals(dswd) && decryptAES.trim().equals(password))
                    || (name.equals(dsgq) && decryptAES.trim().equals(password))
                    || (name.equals(dshk) && decryptAES.trim().equals(password))
                    || (name.equals(dswb) && decryptAES.trim().equals(password))
                    || (name.equals(dsjj) && decryptAES.trim().equals(password))
                    || (name.equals(dssx) && decryptAES.trim().equals(password))
                    || (name.equals(dsxy) && decryptAES.trim().equals(password))
                    || (name.equals(dsht) && decryptAES.trim().equals(password))
                    || (name.equals(dsbb) && decryptAES.trim().equals(password))
                    || (name.equals(lmbn) && decryptAES.trim().equals(password))
                    || (name.equals(lmjb) && decryptAES.trim().equals(password))
                    || (name.equals(lmbx) && decryptAES.trim().equals(password))
                    || (name.equals(lmly) && decryptAES.trim().equals(password))
                    || (name.equals(lmhm) && decryptAES.trim().equals(password))
                    || (name.equals(lmsh) && decryptAES.trim().equals(password))
                    || (name.equals(lmqn) && decryptAES.trim().equals(password))
                    || (name.equals(zshm) && decryptAES.trim().equals(password))
                    || (name.equals(zsbc) && decryptAES.trim().equals(password))
                    || (name.equals(zsbb) && decryptAES.trim().equals(password))
            ) {
                map.put(name, 0L);
                token = JwtUtilsA.createToken(name);
            } else {
                token = "exceededTimes";
            }
        }
        return token;
    }


}
