Skip to content

Commit 69af2f8

Browse files
author
blue
committed
first commit
0 parents  commit 69af2f8

File tree

8 files changed

+3340
-0
lines changed

8 files changed

+3340
-0
lines changed

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
bin/
2+
build/
3+
CMakeFiles/
4+
Makefile
5+
CMakeCache.txt
6+
cmake_install.cmake

CMakeLists.txt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
cmake_minimum_required(VERSION 2.8.12)
2+
project(lesspass-cpp)
3+
4+
add_definitions("-std=c++17")
5+
6+
7+
# include(build/conanbuildinfo.cmake)
8+
# conan_basic_setup()
9+
include_directories(inc)
10+
add_library(library INTERFACE)
11+
target_include_directories(library INTERFACE inc/)
12+
13+
set(CMAKE_CXX_FLAGS "-g -O0 -Wall -Wextra -pedantic-errors")
14+
15+
16+
add_executable(lesspass-cpp src/main.cpp)
17+
18+
set_target_properties(lesspass-cpp PROPERTIES LINKER_LANGUAGE CXX)
19+
# target_link_libraries(lesspass ${CONAN_LIBS})
20+
target_link_libraries(lesspass-cpp ssl crypto)
21+
target_link_libraries(lesspass-cpp library)

README.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# lesspass-cpp :key:
2+
3+
This an **Unoffical client** of [lesspass cli](https://github.com/lesspass/lesspass/tree/master/cli) in C++
4+
5+
What is LessPass?
6+
7+
> LessPass is a stateless password manager. Unlike other password managers which requires syncing, LessPass requires one master password to access all your passwords from anydevice. More on their LessPass [website](https://blog.lesspass.com/2016-10-19/how-does-it-work) on How it works.
8+
9+
10+
11+
## installation
12+
13+
```bash
14+
# require cmake
15+
git clone git@github.com:neelabalan/lesspass-cpp.git
16+
cd lesspass-cpp
17+
cmake .
18+
make
19+
# binary in bin folder in current directory
20+
```
21+
22+
23+
24+
## usage
25+
26+
```bash
27+
user@blue ~ ./bin/lesspass-cpp
28+
29+
Usage: lesspass-cpp [options]
30+
31+
Optional arguments:
32+
-h --help show this help message and exit
33+
--site site[Required]
34+
--login login[Required]
35+
--pass password[Required]
36+
--counter counter (default is 5)
37+
-l --no-lower exclude lowecase characters in password
38+
-u --no-upper exclude uppercase characters in password
39+
-d --no-digits exclude digits in password
40+
-s --no-symbols exclude symbols in password
41+
--length length of the password string (default is 10)
42+
43+
user@blue ~ ./lesspass-cpp --site google --login gmail.com --pass masterpassword
44+
/0O@KG:Oio
45+
```
46+

0 commit comments

Comments
 (0)