Package: otpnitro
AboutOTP Nitrois a secureOne Time Padimplementation to use on computers or as assistant on manual operations.CLI UsageGenerate OTP pages on the “TST” book:C:\> .\otpnitro.exe -g -r TST
OTP Nitro 0.1
-------------
[I] Generating OTP: TST. OKEncrypt message:C:\> otpnitro.exe -e -s CPX -r TST -m "ESTO ES UNA PRUEBA"
OTP Nitro 0.1
-------------
[I] Encrypted msg:
TST DE CPX 11 = RHJQG AKZQV RUMKV IYHJY YQYVT =Decrypt message:C:\> otpnitro.exe -d -p 11 -s CPX -r TST -m "RHJQG AKZQV RUMKV IYHJY YQYVT"
OTP Nitro 0.1
-------------
[I] Decrypted msg:
TST DE CPX 11 = ESTO ES UNA PRUEBA =Decrypt formated message:C:\> otpnitro.exe -d -f "TST DE CPX 11 = RHJQG AKZQV RUMKV IYHJY YQYVT ="
OTP Nitro 0.1
-------------
[I] Decrypted msg:
TST DE CPX 11 = ESTO ES UNA PRUEBA =Burn a page:C:\> otpnitro.exe -b -p 11 -r TST
OTP Nitro 0.1
-------------
[I] Burn page 11. OKGUI UsageIntroductionOTPNITRO is a secure One Time Pad implementation to use on computers or as assistant on manual operation.ConceptsIn this chapter we describe the basic concepts to use in this app.BooksThe cipher data is stored on books, every book have “pages” where the data is generated. The books usually have very short names, from 3 to 5 characters.PagesThe pages store the cipher to crypt and decrypt, every page is unique and after use it you must burn the used page.From fieldThe recipient is anyone who have the same book than you used to crypt the message and you must identify yourself as sender in the from field. The IDs usually have very short names, from 3 to 5 characters.Formatted messageTo have a send/receive standar format, please use this one:<BOOK> DE <FROM> <PAGE> = <MESSAGE> =Example:TST DE CPX 2 = QSZBO IGFIY NVTVY BFXCB KROAP =OperationsIn this chapter we describe the basic operations.Generate a bookThe first operation is generate a book, to do this, please use the menu: Books -> Generate Book or press CTRL + G keys.CryptTo crypt a message you must provide a valid book in the selector, an arbitrary ID in the form field and a message unformated to crypt. The page will be selected automatically. Later you must use the menu: Crypto -> Crypt or press CTRL + E keys.DecryptTo decrypt a message you can provide a formatted message, in this case you only must select the “Formatted msg” option. If you dont have the format, you can enter all fields manually. Later you must use the menu: Crypto -> Decrypt or press CTRL + D keys.Burn pageIt is recommended to burn the page after use, but if you want to do this manually  (or later) you can use the menu: Crypto -> Burn page or press CTRL + B keys.Refresh booksIf you modify or delete any book in the filesystem you must refresh the books in the app. To do that you can use the menu: Crypto -> Refresh books or press CTRL + R keys.InternalsIn this chapter we describe internal operations, know bugs or missing features.SettingsThe settings/config file must be located on %APPDATA%/.otpnitro/otpnitro.ini or $HOME/.otpnitro/otpnitro.iniBook storingBy default the books are stored on %APPDATA%/.otpnitro/PAGES or $HOME/.otpnitro/PAGES (this can be changed in the config file)Max pages parameterIs the number of pages generated for book. (this value limits the number of messages to be crypted on a book)Max chars parameterIs the number of characters generated for page. (this value limits the number of text to be crypted)Project URLFor more information, updates, etc. you can visit the projecthomepage.LicenseThis program is under the GPLv3 license.Authors@capi_x<capi_x@haibane.org>Acknowledges@Mario_vilas- Thanks for GUI and crypto testing.@sha0coder- Thanks for CLI and GUI testing.@AloneInTheShell- Thanks for CLI and LIB testing.CLI compile guideCompile:Generic / Debian:makeFreeBSD:CXX=clang++ gmakeInstall:Generic:make installFreeBSD:CXX=clang++ gmake freebsd-cliDebian:make debian-cliGUI compile guideFirst you must install theU++ enviroment. Once installed you must add the otpnitrogui project. (Windows users also must installMinGW)Next you must put the otpnitro path in the package textbox.Click on the output mode button.Fill all settings as in the image.Next select “Build methods” menuAgain fill all options and add the otpnitro path to “lib directories”Ok, you can build all now pressing the F7 key.Install:Generic:make installFreeBSD:CXX=clang++ gmake freebsdDebian:make debianBindingsOTP Nitrosupports bindings to other languages usingSWIGPythonCompile:make bindingsInstall:make python-otpnitro
( Install the .deb or .tzx package )UsageOnce installed:>> import otpnitro
>> page = otpnitro.Page()
>> print page.list()APIThe API documentation is located here:HTMLPDFFeaturesGenerate pages and booksEncrypt messagesDecrypt messagesBurn pages (secure delete)Automatic text format (header)GUI usingUltimate++API and libraryBindingsTODOAutomatic file parse daemonPrint pagesLicenseOTP Nitrois released under theGPLv3license.