build: experimental build with node package

This commit is contained in:
鲁树人
2024-09-03 00:17:54 +01:00
parent d51cfae9c2
commit 3f9d4b5084
24 changed files with 732 additions and 1 deletions

View File

@@ -38,7 +38,7 @@ pub fn encrypt_ksing<T: AsRef<[u8]>>(data: T, key: &[u8; 8]) -> Result<String> {
Ok(B64.encode(data))
}
pub fn decode_ekey<T: AsRef<[u8]>>(data: &str, key: &[u8; 8]) -> Result<String> {
pub fn decode_ekey(data: &str, key: &[u8; 8]) -> Result<String> {
let decoded = decrypt_ksing(data, key)?;
Ok(decoded[16..].to_string())
}