In the field of physical layer security,key generation technology based on wireless channel includes four steps:channel detection,quantization,key reconciliation and security enhancement.Considering the traditional quantization schemes only focus on the design of quantization terminal value and the high initial key disagreement rate(KDR),a quantization algorithm based on maximum a posteriori decision criterion(MAP)is proposed by constructing a mathematical model to calculate the probability of the partner's quantization results,and obtaining its quantized symbol information and bit soft-information.The simulation results show that the proposed algorithm can achieve lower KDR.The KDR of the proposed algorithm is 43%and 35%lower than that of equal probability quantization and channel quantization alternating(CQA)algorithm respectively when SNR is 10 dB.Meanwhile,adopting 2-bits quantization,the length of the generated key of the algorithm is two times longer than that of CQA.