refactor: rearrange code

This commit is contained in:
鲁树人 2024-09-14 01:33:23 +01:00
parent af965ee0cc
commit 7b283a5a14
2 changed files with 6 additions and 5 deletions

View File

@ -1,16 +1,15 @@
use crate::kwm_v1::CipherV1;
use anyhow::Result;
use byteorder::{ReadBytesExt, LE};
use std::io::{Cursor, Read};
use thiserror::Error;
use umc_qmc::QMCv2Cipher;
pub mod des;
pub mod kwm_v1;
pub use umc_qmc::QMCv2Cipher as CipherV2;
use crate::kwm_v1::CipherV1;
use thiserror::Error;
use umc_qmc::QMCv2Cipher;
/// Commonly used secret key for Kuwo services.
pub const SECRET_KEY: [u8; 8] = *b"ylzsxkwm";

View File

@ -1,5 +1,7 @@
use base64::engine::{DecodePaddingMode, GeneralPurpose as Base64Engine, GeneralPurposeConfig};
use base64::{alphabet, DecodeError, Engine};
use base64::{alphabet, Engine};
pub use base64::DecodeError;
/// Don't add padding when encoding, and require no padding when decoding.
pub const ENGINE: Base64Engine = Base64Engine::new(