chore: experiments with proto

This commit is contained in:
Pavel-Savely Savianok 2025-07-23 21:41:50 +03:00
parent 53233bffea
commit 8c92239aa4

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') {