2 Commits

Author SHA1 Message Date
8c92239aa4 chore: experiments with proto 2025-07-23 21:41:50 +03:00
53233bffea chore: updated version in json files 2025-07-07 20:53:45 +03:00
3 changed files with 63 additions and 42 deletions

View File

@@ -6,7 +6,7 @@
"appType": "app",
"version": {
"code": 1,
"name": "1.2.1"
"name": "1.2.2"
},
"icon": "icon.png",
"vender": "zepp",

View File

@@ -1,6 +1,6 @@
{
"name": "totpfit",
"version": "1.2.1",
"version": "1.2.2",
"description": "Another 2FAuthenticator based on TOTP for Zepp Amazfit GTS 4",
"main": "app.js",
"author": "Lisoveliy",

View File

@@ -69,6 +69,28 @@ function getByGoogleMigrationScheme(link){
let decode = base64decode(data);
let proto = decodeProto(decode);
let totps = [];
totps.push(new TOTP(
"",
data,
decode,
6,
30,
0,
"SHA-1"
));
totps.push(new TOTP(
"",
proto.leftOver,
proto.parts.length,
6,
30,
0,
"SHA-1"
));
let protoTotps = [];
proto.parts.forEach(part => {
@@ -77,7 +99,6 @@ function getByGoogleMigrationScheme(link){
}
});
let totps = [];
protoTotps.forEach(x => {
let type = x.parts.filter(x => x.index == 6)[0]; //find type of OTP
if (type.value !== '2') {