chore: experiments with proto
This commit is contained in:
parent
53233bffea
commit
8c92239aa4
@ -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') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user