Skip to content

Commit

Permalink
Merge pull request #4 from 1291945816/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
1291945816 authored Dec 16, 2023
2 parents 339786b + 6931497 commit 5eed6c8
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 12 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,8 @@

*.idea
*cmake-build-debug

ToTpAuth/src/main.cpp
*.vs
out

18 changes: 6 additions & 12 deletions ToTpAuth/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,10 @@ gcc >= 8.1
```
### 构建项目 && 运行
```shell
# 创建构建目录
mkdir build
cd build

#生成Makefile文件
cmake ..

# 编译
make

# 运行
git clone --recursive [email protected]:1291945816/hybrid-repo.git
cd ToTpAuth
cmake -B build -S .
cmake --build build -j 8
cd build
./ToTpAuth
```
```
5 changes: 5 additions & 0 deletions ToTpAuth/include/Totp.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,12 @@ class Totp {
initTime_(initTime),
timeStep_(timeStep),
digit_(digit){}
// 更新密钥的值
void updateSecret(std::string secret)
{
this->strSecret_ = std::move(secret);

}
std::string genTotp(std::time_t currTime) ;
~Totp()=default;

Expand Down

0 comments on commit 5eed6c8

Please sign in to comment.