Skip to content

Classes

GlobalDescription
Decrypter

Decrypter

Kind: global class

  • Decrypter
    • new Decrypter()
    • .hasEncryptedImages : Boolean
    • .hasEncryptedAudio : Boolean
    • .SIGNATURE : String
    • .VER : String
    • .REMAIN : String

new Decrypter()

用于处理文件解密的静态类
The static class for handling file decryption.


Decrypter.hasEncryptedImages : Boolean

是否有加密图像
Whether there are encrypted images.

Kind: static property of Decrypter
Properties

Name
hasEncryptedImages

Decrypter.hasEncryptedAudio : Boolean

是否有加密音频
Whether there are encrypted audio files.

Kind: static property of Decrypter
Properties

Name
hasEncryptedAudio

Decrypter.SIGNATURE : String

签名
Signature.

Kind: static property of Decrypter
Properties

Name
SIGNATURE

Decrypter.VER : String

版本
Version.

Kind: static property of Decrypter
Properties

Name
VER

Decrypter.REMAIN : String

剩余部分
Remaining part.

Kind: static property of Decrypter
Properties

Name
REMAIN

.checkImgIgnore(url) ⇒ Boolean

检查图像是否应在加密时被忽略
Checks whether the image should be ignored for encryption.

Kind: static function
Returns: Boolean - 如果图像应被忽略则返回 true / True if the image should be ignored

ParamTypeDescription
urlString要检查的图像 URL / The image URL to check

.decryptImg(url, bitmap)

解密加密图像并将其加载到位图中
Decrypts an encrypted image and loads it into the bitmap.

Kind: static function

ParamTypeDescription
urlString加密图像的 URL / The URL of the encrypted image
bitmapBitmap要加载图像的位图对象 / The bitmap object to load the image into

.decryptHTML5Audio(url, bgm, pos)

解密 HTML5 音频文件
Decrypts HTML5 audio files.

Kind: static function

ParamTypeDescription
urlString音频文件 URL / The audio file URL
bgmObject背景音乐对象 / The background music object
posNumber位置 / The position

.cutArrayHeader(arrayBuffer, length) ⇒ ArrayBuffer

切除数组缓冲区的头部
Cuts the header from the array buffer.

Kind: static function
Returns: ArrayBuffer - 处理后的数组缓冲区 / The processed array buffer

ParamTypeDescription
arrayBufferArrayBuffer要处理的数组缓冲区 / The array buffer to process
lengthNumber要切除的长度 / The length to cut

.decryptArrayBuffer(arrayBuffer) ⇒ ArrayBuffer

解密数组缓冲区
Decrypts the array buffer.

Kind: static function
Returns: ArrayBuffer - 解密后的数组缓冲区 / The decrypted array buffer

ParamTypeDescription
arrayBufferArrayBuffer要解密的数组缓冲区 / The array buffer to decrypt

.createBlobUrl(arrayBuffer) ⇒ String

从数组缓冲区创建 Blob URL
Creates a Blob URL from the array buffer.

Kind: static function
Returns: String - Blob URL

ParamTypeDescription
arrayBufferArrayBuffer数组缓冲区 / The array buffer

.extToEncryptExt(url) ⇒ String

将文件扩展名转换为加密扩展名
Converts file extension to encrypted extension.

Kind: static function
Returns: String - 带有加密扩展名的 URL / The URL with encrypted extension

ParamTypeDescription
urlString文件 URL / The file URL

.readEncryptionkey()

读取加密密钥
Reads the encryption key.

Kind: static function


贡献者

暂无相关贡献者

页面历史

暂无最近变更历史
最近更新