MCPcopy Create free account
hub / github.com/Mister-leo/fssh / DefaultInitOptions

Function DefaultInitOptions

internal/otp/init.go:27–35  ·  view source on GitHub ↗

DefaultInitOptions 返回默认初始化选项

()

Source from the content-addressed store, hash-verified

25
26// DefaultInitOptions 返回默认初始化选项
27func DefaultInitOptions() *InitOptions {
28 return &InitOptions{
29 SeedUnlockTTL: 3600, // 1小时
30 Algorithm: "SHA1",
31 Digits: 6,
32 Period: 30,
33 GenerateRecovery: true,
34 }
35}
36
37// Initialize 初始化 OTP 配置
38// 1. 生成随机 OTP seed

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected