MCPcopy Create free account
hub / github.com/Ice-Hazymoon/MikuTools / circleCode

Function circleCode

utils/sot1_encrypt.js:8–17  ·  view source on GitHub ↗
(code)

Source from the content-addressed store, hash-verified

6
7// 环码
8const circleCode = function(code) {
9 if (code > 255) {
10 code = code % 255;
11 } else if (code < 1) {
12 while (code < 1) {
13 code += 255;
14 }
15 }
16 return code;
17};
18
19// sot1 v1 版本加解密方案
20const sot1v1 = {

Callers 3

encodeCoreFunction · 0.85
decodeCoreFunction · 0.85
decodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected