Commit c1217843 authored by Marcus Pedersén's avatar Marcus Pedersén
Browse files

Configured to be able to build debian package

parent ac189343
......@@ -3,6 +3,9 @@ name = "ttp"
version = "1.0.0"
authors = ["marcus <marcus.pedersen@slu.se>"]
edition = "2018"
license = "GPL-3.0-or-later"
description = "Get totp password code"
readme = "README.md"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
......@@ -13,3 +16,25 @@ magic-crypt = "3.1.5"
uuid = { version = "0.8", features = ["v4"] }
boringauth = "0.9.0"
data-encoding = "2.3.0"
[package.metadata.deb]
# To crete deb package
# cargo install cargo-deb
# cargo deb
maintainer = "Marcus Pedersén <marcus.pedersen@slu.se>"
copyright = "2020, Marcus Pedersén <marcus.pedersen@slu.se>"
license-file = ["copyright", "0"]
extended-description = """\
Terminal program where you save your secret base32 codes associated
with an easy to remember name, protected by a master password,
both chosen by yourself."""
depends = "$auto"
section = "utils"
priority = "optional"
revision = "1"
changelog = "changelog"
assets = [
["target/release/ttp", "usr/bin/ttp", "755"],
["man.1.gz", "usr/share/man/man1/ttp.1.gz", "644"],
]
ttp (1.0.0) unstable; urgency=LOW
* Added options to chose hash function to generate TOTP password,
Available hash functions: Sha1 (Default), Sha256, Sha512
-- Marcus Pedersén <marcus.pedersen@slu.se> Wed, 28 Oct 2020 11:10:00 +0100
ttp
Copyright: Marcus Pedersén <marcus.pedersen@slu.se>
2020-11-18
The home page of ttp is at:
https://projects.interbull.org/marcus/ttp
The entire code base is distributed under the terms of the GNU General
Public License (GPL), which appears immediately below.
See /usr/share/common-licenses/GPL-3
.TH ttp 1 "October 2020" "ttp-1.0.0" "User manuals"
.SH NAME
\fBttp \fP- Get totp password code
\fB
.SH SYNOPSIS
.nf
.fam C
\fBttp\fP [\fIOPTION\fP] .. [\fIKEYNAME\fP]
.fam T
.fi
.fam T
.fi
.SH DESCRIPTION
Generates TOTP passwords in your terminal.
The encrypted files will be stored in your home directory at: $HOME/.ttp
.PP
If you add a new key and you made the wrong choice or you named it wrong,
you can delete the file in $HOME/.tpp/the_name.
.br
Eg. rm $HOME/.tpp/the_name
.br
and then add it again with: \fBtpp --new\fP
.PP
If you forget your master password, you will have to start over and add all your
keys from the begining.
.br
To delete your master password you will have to delete
the .ttp directory in your home.
.br
Eg. rm -rf $HOME/.ttp
.SH OPTIONS
.TP
.B
no args
Called with no args, same as \fB--list\fP or \fB-l\fP
.TP
.B
\fBKEYNAME\fP
Interactive, will ask for pass phrase to unlock and print current totp password code.
.br
Number of digits that will be generated depends on how many digis were choosen when key was added with option \fB--new\fP.
.TP
.B
\fB-n\fP, \fB--new\fP
Add new totp key, interactive. Give a discriptive name to your key, this name is listed with option \fB--list\fP
.br
Add your bas32 code, choose encoding and number of digits that should be generated.
.br
The default options gives a SHA1 encoded password code with 6 (six) digits.
.TP
.B
\fB-l\fP, \fB--list\fP
List names (\fIKEYNAME\fP) of available totp keys
.TP
.B
\fB-h\fP, \fB--help\fP
Print this help text and exit
.TP
.B
\fB--version\fP
output version information and exit
.RE
.PP
.SH AUTHOR
Written by Marcus Pedersén.
.SH REPORTING BUGS
Report bugs by creating an issue at: <https://projects.interbull.org/marcus/ttp>
.SH COPYRIGHT
.TP
Copyright © 2020 Marcus Pedersén. License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
.TP
This is free software: you are free to change and redistribute it. There is no WARRANTY, to the extent permitted by law.
.SH SEE ALSO
For source code and binaries see: <https://projects.interbull.org/marcus/ttp>
File added
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment