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 <>"]
edition = "2018"
license = "GPL-3.0-or-later"
description = "Get totp password code"
readme = ""
# See more keys and their definitions at
......@@ -13,3 +16,25 @@ magic-crypt = "3.1.5"
uuid = { version = "0.8", features = ["v4"] }
boringauth = "0.9.0"
data-encoding = "2.3.0"
# To crete deb package
# cargo install cargo-deb
# cargo deb
maintainer = "Marcus Pedersén <>"
copyright = "2020, Marcus Pedersén <>"
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 <> Wed, 28 Oct 2020 11:10:00 +0100
Copyright: Marcus Pedersén <>
The home page of ttp is at:
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"
\fBttp \fP- Get totp password code
.fam C
\fBttp\fP [\fIOPTION\fP] .. [\fIKEYNAME\fP]
.fam T
.fam T
Generates TOTP passwords in your terminal.
The encrypted files will be stored in your home directory at: $HOME/.ttp
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.
Eg. rm $HOME/.tpp/the_name
and then add it again with: \fBtpp --new\fP
If you forget your master password, you will have to start over and add all your
keys from the begining.
To delete your master password you will have to delete
the .ttp directory in your home.
Eg. rm -rf $HOME/.ttp
no args
Called with no args, same as \fB--list\fP or \fB-l\fP
Interactive, will ask for pass phrase to unlock and print current totp password code.
Number of digits that will be generated depends on how many digis were choosen when key was added with option \fB--new\fP.
\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
Add your bas32 code, choose encoding and number of digits that should be generated.
The default options gives a SHA1 encoded password code with 6 (six) digits.
\fB-l\fP, \fB--list\fP
List names (\fIKEYNAME\fP) of available totp keys
\fB-h\fP, \fB--help\fP
Print this help text and exit
output version information and exit
Written by Marcus Pedersén.
Report bugs by creating an issue at: <>
Copyright © 2020 Marcus Pedersén. License GPLv3+: GNU GPL version 3 or later <>.
This is free software: you are free to change and redistribute it. There is no WARRANTY, to the extent permitted by law.
For source code and binaries see: <>
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