refactor: rearrange code
This commit is contained in:
parent
af965ee0cc
commit
7b283a5a14
@ -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";
|
||||
|
||||
|
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user