├── LICENSE ├── README.md ├── com.github.alexkdeveloper.forgetpass.json ├── data ├── com.github.alexkdeveloper.forgetpass.appdata.xml.in ├── com.github.alexkdeveloper.forgetpass.desktop.in ├── forgetpass.png ├── icons │ ├── hicolor │ │ └── scalable │ │ │ └── apps │ │ │ └── com.github.alexkdeveloper.forgetpass.svg │ └── meson.build ├── meson.build └── screenshot.png ├── meson.build ├── po ├── LINGUAS ├── POTFILES ├── be.po ├── es.po ├── eu.po ├── forgetpass.pot ├── it.po ├── meson.build ├── nl.po ├── ru.po ├── tr.po └── uk_UA.po └── src ├── crypto.vala ├── main.vala ├── meson.build ├── vapi ├── config.vapi └── gcrypt.vapi └── window.vala /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Forgetpass 2 | 3 | ![forgetpass.png](data/forgetpass.png) 4 | 5 | ![screenshot.png](data/screenshot.png) 6 | 7 | [Download on Flathub](https://flathub.org/apps/details/com.github.alexkdeveloper.forgetpass) 8 | -------------------------------------------------------------------------------- /com.github.alexkdeveloper.forgetpass.json: -------------------------------------------------------------------------------- 1 | { 2 | "app-id" : "com.github.alexkdeveloper.forgetpass", 3 | "runtime" : "org.gnome.Platform", 4 | "runtime-version" : "46", 5 | "sdk" : "org.gnome.Sdk", 6 | "command" : "com.github.alexkdeveloper.forgetpass", 7 | "finish-args" : [ 8 | "--device=dri", 9 | "--share=ipc", 10 | "--socket=fallback-x11", 11 | "--socket=wayland" 12 | ], 13 | "cleanup" : [ 14 | "/include", 15 | "/lib/pkgconfig", 16 | "/man", 17 | "/share/doc", 18 | "/share/gtk-doc", 19 | "/share/man", 20 | "/share/pkgconfig", 21 | "/share/vala", 22 | "*.la", 23 | "*.a" 24 | ], 25 | "modules" : [ 26 | { 27 | "name" : "Forgetpass", 28 | "builddir" : true, 29 | "buildsystem" : "meson", 30 | "sources" : [ 31 | { 32 | "type" : "dir", 33 | "path" : "." 34 | } 35 | ] 36 | } 37 | ] 38 | } 39 | -------------------------------------------------------------------------------- /data/com.github.alexkdeveloper.forgetpass.appdata.xml.in: -------------------------------------------------------------------------------- 1 | 2 | 3 | com.github.alexkdeveloper.forgetpass 4 | CC0-1.0 5 | GPL-3.0+ 6 | Forgetpass 7 | Simple password generator for websites 8 | 9 |

You don't need to remember passwords anymore! All you need is a website name and a keyword that is easy to remember. The program will generate a strong password, and if you need it again, just enter the above data and you will get the same password.

10 |
11 | 12 | com.github.alexkdeveloper.forgetpass 13 | 14 | Alex Kryuchkov 15 | 16 | Alex Kryuchkov 17 | 18 | https://github.com/alexkdeveloper/forgetpass 19 | https://github.com/alexkdeveloper/forgetpass/issues 20 | https://github.com/alexkdeveloper/forgetpass/issues 21 | https://github.com/alexkdeveloper/forgetpass 22 | https://github.com/alexkdeveloper/forgetpass/tree/main/po 23 | 24 | 25 | https://raw.githubusercontent.com/alexkdeveloper/forgetpass/main/data/screenshot.png 26 | 27 | 28 | 29 | com.github.alexkdeveloper.forgetpass 30 | com.github.alexkdeveloper.forgetpass.desktop 31 | 32 | 33 | 34 |
    35 |
  • Updated Dutch translation
  • 36 |
37 |
38 |
39 | 40 | 41 |
    42 |
  • Updated to GNOME Platform version 46
  • 43 |
44 |
45 |
46 | 47 | 48 |
    49 |
  • Added Ukrainian translation
  • 50 |
  • Added Belarusian translation
  • 51 |
52 |
53 |
54 | 55 | 56 |
    57 |
  • Updated to GNOME Platform version 45
  • 58 |
59 |
60 |
61 | 62 | 63 |
    64 |
  • Updated to GNOME Platform version 44
  • 65 |
66 |
67 |
68 | 69 | 70 |
    71 |
  • Minor UI update
  • 72 |
73 |
74 |
75 | 76 | 77 |
    78 |
  • Updated Italian translation
  • 79 |
80 |
81 |
82 | 83 | 84 |
    85 |
  • Port to AdwEntryRow
  • 86 |
87 |
88 |
89 | 90 | 91 |
    92 |
  • Added the ability to copy the password to the clipboard
  • 93 |
94 |
95 |
96 | 97 | 98 |
    99 |
  • The app icon has been updated
  • 100 |
101 |
102 |
103 | 104 | 105 |
    106 |
  • Added Spanish and Basque translations
  • 107 |
108 |
109 |
110 | 111 | 112 |
    113 |
  • Update to GNOME Platform version 43
  • 114 |
115 |
116 |
117 | 118 | 119 |
    120 |
  • Pop-up messages were introduced
  • 121 |
122 |
123 |
124 | 125 | 126 |
    127 |
  • Minor UI update
  • 128 |
129 |
130 |
131 | 132 | 133 |
    134 |
  • Added Italian translation
  • 135 |
  • Added Russian translation
  • 136 |
137 |
138 |
139 | 140 | 141 |
    142 |
  • Libadwaita is included in the application
  • 143 |
144 |
145 |
146 | 147 | 148 |
    149 |
  • Added Dutch translation
  • 150 |
151 |
152 |
153 | 154 | 155 |
    156 |
  • Initial release
  • 157 |
158 |
159 |
160 |
161 |
162 | -------------------------------------------------------------------------------- /data/com.github.alexkdeveloper.forgetpass.desktop.in: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Name=Forgetpass 3 | Comment=Simple password generator for websites 4 | Exec=com.github.alexkdeveloper.forgetpass 5 | Icon=com.github.alexkdeveloper.forgetpass 6 | Terminal=false 7 | Type=Application 8 | Categories=Utility;GTK;Security; 9 | StartupNotify=true 10 | Keywords=Password;Manager;Security;Generate;Derive; 11 | -------------------------------------------------------------------------------- /data/forgetpass.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexkdeveloper/forgetpass/65145b3d173c161321f7ba7b564f92db3b03be33/data/forgetpass.png -------------------------------------------------------------------------------- /data/icons/hicolor/scalable/apps/com.github.alexkdeveloper.forgetpass.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /data/icons/meson.build: -------------------------------------------------------------------------------- 1 | application_id = 'com.github.alexkdeveloper.forgetpass' 2 | 3 | scalable_dir = join_paths('hicolor', 'scalable', 'apps') 4 | install_data( 5 | join_paths(scalable_dir, ('@0@.svg').format(application_id)), 6 | install_dir: join_paths(get_option('datadir'), 'icons', scalable_dir) 7 | ) 8 | 9 | -------------------------------------------------------------------------------- /data/meson.build: -------------------------------------------------------------------------------- 1 | desktop_file = i18n.merge_file( 2 | input: 'com.github.alexkdeveloper.forgetpass.desktop.in', 3 | output: 'com.github.alexkdeveloper.forgetpass.desktop', 4 | type: 'desktop', 5 | po_dir: '../po', 6 | install: true, 7 | install_dir: join_paths(get_option('datadir'), 'applications') 8 | ) 9 | 10 | desktop_utils = find_program('desktop-file-validate', required: false) 11 | if desktop_utils.found() 12 | test('Validate desktop file', desktop_utils, 13 | args: [desktop_file] 14 | ) 15 | endif 16 | 17 | appstream_file = i18n.merge_file( 18 | input: 'com.github.alexkdeveloper.forgetpass.appdata.xml.in', 19 | output: 'com.github.alexkdeveloper.forgetpass.appdata.xml', 20 | po_dir: '../po', 21 | install: true, 22 | install_dir: join_paths(get_option('datadir'), 'appdata') 23 | ) 24 | 25 | appstream_util = find_program('appstream-util', required: false) 26 | if appstream_util.found() 27 | test('Validate appstream file', appstream_util, 28 | args: ['validate', appstream_file] 29 | ) 30 | endif 31 | 32 | compile_schemas = find_program('glib-compile-schemas', required: false) 33 | if compile_schemas.found() 34 | test('Validate schema file', compile_schemas, 35 | args: ['--strict', '--dry-run', meson.current_source_dir()] 36 | ) 37 | endif 38 | 39 | subdir('icons') 40 | -------------------------------------------------------------------------------- /data/screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexkdeveloper/forgetpass/65145b3d173c161321f7ba7b564f92db3b03be33/data/screenshot.png -------------------------------------------------------------------------------- /meson.build: -------------------------------------------------------------------------------- 1 | project('com.github.alexkdeveloper.forgetpass', ['c', 'vala'], 2 | version: '0.1.0', 3 | default_options: [ 'warning_level=2', 4 | ], 5 | ) 6 | 7 | i18n = import('i18n') 8 | 9 | config_h_dir = include_directories('.') 10 | 11 | conf = configuration_data() 12 | conf.set_quoted('GETTEXT_PACKAGE', meson.project_name()) 13 | conf.set_quoted('LOCALEDIR', join_paths(get_option('prefix'), get_option('localedir'))) 14 | configure_file(output: 'config.h', configuration: conf) 15 | 16 | subdir('data') 17 | subdir('src') 18 | subdir('po') 19 | 20 | gnome = import('gnome') 21 | 22 | gnome.post_install( 23 | glib_compile_schemas: false, 24 | gtk_update_icon_cache: true, 25 | update_desktop_database: true 26 | ) 27 | -------------------------------------------------------------------------------- /po/LINGUAS: -------------------------------------------------------------------------------- 1 | be 2 | es 3 | eu 4 | it 5 | nl 6 | ru 7 | tr 8 | uk_UA 9 | -------------------------------------------------------------------------------- /po/POTFILES: -------------------------------------------------------------------------------- 1 | data/com.github.alexkdeveloper.forgetpass.desktop.in 2 | data/com.github.alexkdeveloper.forgetpass.appdata.xml.in 3 | src/window.vala -------------------------------------------------------------------------------- /po/be.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the PACKAGE package. 4 | # YAHOR HAURYLENKA , 2024. 5 | # 6 | msgid "" 7 | msgstr "" 8 | "Project-Id-Version: \n" 9 | "Report-Msgid-Bugs-To: \n" 10 | "POT-Creation-Date: 2024-01-06 16:02+0300\n" 11 | "PO-Revision-Date: 2024-01-09 16:44+0100\n" 12 | "Last-Translator: \n" 13 | "Language-Team: \n" 14 | "Language: be\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | "X-Generator: Poedit 3.4\n" 19 | 20 | #: data/com.github.alexkdeveloper.forgetpass.desktop.in:3 21 | #: data/com.github.alexkdeveloper.forgetpass.appdata.xml.in:6 22 | msgid "Forgetpass" 23 | msgstr "Forgetpass" 24 | 25 | #: data/com.github.alexkdeveloper.forgetpass.desktop.in:4 26 | #: data/com.github.alexkdeveloper.forgetpass.appdata.xml.in:7 27 | msgid "Simple password generator for websites" 28 | msgstr "Просты генератар пароляў для сайтаў" 29 | 30 | #: data/com.github.alexkdeveloper.forgetpass.desktop.in:11 31 | msgid "Password;Manager;Security;Generate;Derive;" 32 | msgstr "" 33 | "Password;Manager;Security;Generate;Derive;Пароль; Менеджэр; Бяспека; " 34 | "Стварыць; Вывесці;" 35 | 36 | #: data/com.github.alexkdeveloper.forgetpass.appdata.xml.in:9 37 | msgid "" 38 | "You don't need to remember passwords anymore! All you need is a website name " 39 | "and a keyword that is easy to remember. The program will generate a strong " 40 | "password, and if you need it again, just enter the above data and you will " 41 | "get the same password." 42 | msgstr "" 43 | "Вам больш не трэба запамінаць паролі! Усё, што вам трэба, гэта назва вэб-" 44 | "сайта і ключавое слова, якое лёгка запомніць. Праграма згенеруе надзейны " 45 | "пароль, і калі ён вам спатрэбіцца зноў, проста ўвядзіце даныя вышэй, і вы " 46 | "атрымаеце той жа пароль." 47 | 48 | #: data/com.github.alexkdeveloper.forgetpass.appdata.xml.in:14 49 | msgid "Alex Kryuchkov" 50 | msgstr "Alex Kryuchkov" 51 | 52 | #: src/window.vala:27 53 | msgid "Site" 54 | msgstr "Сайт" 55 | 56 | #: src/window.vala:28 57 | msgid "" 58 | "Use only the domain name without prefixes, such as http or www, and endings, " 59 | "such as .com, etc." 60 | msgstr "" 61 | "Выкарыстоўвайце толькі даменнае імя без прэфіксаў, напрыклад http або www, і " 62 | "канчаткаў, такіх як .com і г.д." 63 | 64 | #: src/window.vala:39 65 | msgid "Keyword" 66 | msgstr "Ключавое слова" 67 | 68 | #: src/window.vala:40 69 | msgid "" 70 | "Be sure to remember the keyword! If you forget it, you won't be able to " 71 | "recover your password!" 72 | msgstr "" 73 | "Абавязкова запомніце ключавое слова! Калі вы забудзеце яго, вы не зможаце " 74 | "аднавіць пароль!" 75 | 76 | #: src/window.vala:60 77 | msgid "GENERATE" 78 | msgstr "СТВАРЫЦЬ" 79 | 80 | #: src/window.vala:70 81 | msgid "Copy password" 82 | msgstr "Скапіраваць пароль" 83 | 84 | #: src/window.vala:106 85 | msgid "Enter the name of the site" 86 | msgstr "Увядзіце назву сайта" 87 | 88 | #: src/window.vala:108 89 | msgid "Enter a keyword" 90 | msgstr "Увядзіце ключавое слова" 91 | 92 | #: src/window.vala:136 93 | msgid "" 94 | "ERROR!!!\n" 95 | "Failed to generate password" 96 | msgstr "" 97 | "ПАМЫЛКА!!!\n" 98 | "Не ўдалося стварыць пароль" 99 | 100 | #: src/window.vala:152 101 | msgid "_OK" 102 | msgstr "_ОК" 103 | -------------------------------------------------------------------------------- /po/es.po: -------------------------------------------------------------------------------- 1 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 2 | # This file is distributed under the same license as the forgetpass package. 3 | # 4 | # Albano Battistella , 2022. 5 | # Sergio Varela , 2022. 6 | # 7 | msgid "" 8 | msgstr "" 9 | "Project-Id-Version: forgetpass\n" 10 | "Report-Msgid-Bugs-To: \n" 11 | "POT-Creation-Date: 2022-05-01 14:21+0200\n" 12 | "PO-Revision-Date: 2022-09-24 17:45+0200\n" 13 | "Last-Translator: Sergio Varela \n" 14 | "Language-Team: Spanish - Spain \n" 15 | "Language: es_ES\n" 16 | "MIME-Version: 1.0\n" 17 | "Content-Type: text/plain; charset=UTF-8\n" 18 | "Content-Transfer-Encoding: 8bit\n" 19 | "Plural-Forms: nplurals=2; plural=(n != 1)\n" 20 | "X-Generator: Gtranslator 40.0\n" 21 | 22 | #: data/com.github.alexkdeveloper.forgetpass.desktop.in:3 23 | #: data/com.github.alexkdeveloper.forgetpass.appdata.xml.in:6 24 | msgid "Forgetpass" 25 | msgstr "Forgetpass" 26 | 27 | #: data/com.github.alexkdeveloper.forgetpass.desktop.in:4 28 | #: data/com.github.alexkdeveloper.forgetpass.appdata.xml.in:7 29 | msgid "Simple password generator for websites" 30 | msgstr "Generador de contraseñas sencillo para sitios web" 31 | 32 | #: data/com.github.alexkdeveloper.forgetpass.desktop.in:11 33 | msgid "password;generator;security;keyword;" 34 | msgstr "contraseña;generador;seguridad;palabra clave;" 35 | 36 | #: data/com.github.alexkdeveloper.forgetpass.appdata.xml.in:9 37 | msgid "" 38 | "You don't need to remember passwords anymore! All you need is a website name " 39 | "and a keyword that is easy to remember. The program will generate a strong " 40 | "password, and if you need it again, just enter the above data and you will " 41 | "get the same password." 42 | msgstr "" 43 | "¡Ya no es necesario recordar contraseñas! Todo lo que necesitas es un nombre " 44 | "de sitio web y una palabra clave que sea fácil de recordar. El programa " 45 | "generará una contraseña fuerte, y si la necesitas de nuevo, sólo tienes que " 46 | "introducir los datos anteriores y obtendrás la misma contraseña." 47 | 48 | #: data/com.github.alexkdeveloper.forgetpass.appdata.xml.in:14 49 | msgid "Alex Kryuchkov" 50 | msgstr "Alex Kryuchkov" 51 | 52 | #: window.vala:14 53 | msgid "Site" 54 | msgstr "Sitio" 55 | 56 | #: window.vala:22 57 | msgid "" 58 | "Use only the domain name without prefixes, such as http or www, and endings, " 59 | "such as .com, etc." 60 | msgstr "" 61 | "Utilice sólo el nombre de dominio sin prefijos, como http o www, ni " 62 | "terminaciones, como .com, etc." 63 | 64 | #: window.vala:25 65 | msgid "Keyword" 66 | msgstr "Palabra clave" 67 | 68 | #: window.vala:34 69 | msgid "" 70 | "Be sure to remember the keyword! If you forget it, you won't be able to " 71 | "recover your password!" 72 | msgstr "" 73 | "¡Asegúrate de recordar la palabra clave! Si la olvidas, no podrás recuperar " 74 | "tu contraseña." 75 | 76 | #: window.vala:36 77 | msgid "GENERATE" 78 | msgstr "GENERAR" 79 | 80 | #: window.vala:78 81 | msgid "Enter the name of the site" 82 | msgstr "Introduce el nombre del sitio" 83 | 84 | #: window.vala:83 85 | msgid "Enter a keyword" 86 | msgstr "Introduce una palabra clave" 87 | 88 | #: window.vala:90 89 | msgid "" 90 | "ERROR!!!\n" 91 | "Failed to generate password" 92 | msgstr "" 93 | "¡¡¡ERROR!!!\n" 94 | "No se ha podido generar la contraseña" 95 | 96 | #: window.vala:100 97 | msgid "Message" 98 | msgstr "Mensaje" 99 | -------------------------------------------------------------------------------- /po/eu.po: -------------------------------------------------------------------------------- 1 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 2 | # This file is distributed under the same license as the forgetpass package. 3 | # 4 | # Albano Battistella , 2022. 5 | # Sergio Varela , 2022. 6 | # 7 | msgid "" 8 | msgstr "" 9 | "Project-Id-Version: forgetpass\n" 10 | "Report-Msgid-Bugs-To: \n" 11 | "POT-Creation-Date: 2022-05-01 14:21+0200\n" 12 | "PO-Revision-Date: 2022-09-24 17:47+0200\n" 13 | "Last-Translator: Sergio Varela \n" 14 | "Language-Team: Spanish - Spain \n" 15 | "Language: es_ES\n" 16 | "MIME-Version: 1.0\n" 17 | "Content-Type: text/plain; charset=UTF-8\n" 18 | "Content-Transfer-Encoding: 8bit\n" 19 | "Plural-Forms: nplurals=2; plural=(n != 1)\n" 20 | "X-Generator: Gtranslator 40.0\n" 21 | 22 | #: data/com.github.alexkdeveloper.forgetpass.desktop.in:3 23 | #: data/com.github.alexkdeveloper.forgetpass.appdata.xml.in:6 24 | msgid "Forgetpass" 25 | msgstr "Forgetpass" 26 | 27 | #: data/com.github.alexkdeveloper.forgetpass.desktop.in:4 28 | #: data/com.github.alexkdeveloper.forgetpass.appdata.xml.in:7 29 | msgid "Simple password generator for websites" 30 | msgstr "Pasahitzen sorgailu erraz bat webguneetarako" 31 | 32 | #: data/com.github.alexkdeveloper.forgetpass.desktop.in:11 33 | msgid "password;generator;security;keyword;" 34 | msgstr "pasahitza;sorgailua;segurtasuna;gako-hitza;" 35 | 36 | #: data/com.github.alexkdeveloper.forgetpass.appdata.xml.in:9 37 | msgid "" 38 | "You don't need to remember passwords anymore! All you need is a website name " 39 | "and a keyword that is easy to remember. The program will generate a strong " 40 | "password, and if you need it again, just enter the above data and you will " 41 | "get the same password." 42 | msgstr "" 43 | "Ez da beharrezkoa pasahitzak gogoratzea! Behar duzun guztia webgunearen izen " 44 | "bat eta gogoratzeko erraza den hitz gako bat da. Programak pasahitz sendo " 45 | "bat sortuko du, eta berriro behar baduzu, aurreko datuak sartu eta pasahitz " 46 | "bera lortuko duzu." 47 | 48 | #: data/com.github.alexkdeveloper.forgetpass.appdata.xml.in:14 49 | msgid "Alex Kryuchkov" 50 | msgstr "Alex Kryuchkov" 51 | 52 | #: window.vala:14 53 | msgid "Site" 54 | msgstr "Webgunea" 55 | 56 | #: window.vala:22 57 | msgid "" 58 | "Use only the domain name without prefixes, such as http or www, and endings, " 59 | "such as .com, etc." 60 | msgstr "" 61 | "Erabili soilik domeinu izena aurrizkirik gabe, adibidez http edo www, ezta " 62 | "amaierak ere, adibidez .com, etab." 63 | 64 | #: window.vala:25 65 | msgid "Keyword" 66 | msgstr "Gako-hitza" 67 | 68 | #: window.vala:34 69 | msgid "" 70 | "Be sure to remember the keyword! If you forget it, you won't be able to " 71 | "recover your password!" 72 | msgstr "" 73 | "Ziurtatu gako-hitza gogoratzen duzula! Ahazten baduzu, ezingo duzu zure " 74 | "pasahitza berreskuratu." 75 | 76 | #: window.vala:36 77 | msgid "GENERATE" 78 | msgstr "SORTU" 79 | 80 | #: window.vala:78 81 | msgid "Enter the name of the site" 82 | msgstr "Sartu webgunearen izena" 83 | 84 | #: window.vala:83 85 | msgid "Enter a keyword" 86 | msgstr "Sartu gako-hitz bat" 87 | 88 | #: window.vala:90 89 | msgid "" 90 | "ERROR!!!\n" 91 | "Failed to generate password" 92 | msgstr "" 93 | "ERROREA!!!\n" 94 | "Ezin izan da pasahitza sortu" 95 | 96 | #: window.vala:100 97 | msgid "Message" 98 | msgstr "Mezua" 99 | -------------------------------------------------------------------------------- /po/forgetpass.pot: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the PACKAGE package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | #, fuzzy 7 | msgid "" 8 | msgstr "" 9 | "Project-Id-Version: PACKAGE VERSION\n" 10 | "Report-Msgid-Bugs-To: \n" 11 | "POT-Creation-Date: 2024-01-06 16:02+0300\n" 12 | "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 13 | "Last-Translator: FULL NAME \n" 14 | "Language-Team: LANGUAGE \n" 15 | "Language: \n" 16 | "MIME-Version: 1.0\n" 17 | "Content-Type: text/plain; charset=CHARSET\n" 18 | "Content-Transfer-Encoding: 8bit\n" 19 | 20 | #: data/com.github.alexkdeveloper.forgetpass.desktop.in:3 21 | #: data/com.github.alexkdeveloper.forgetpass.appdata.xml.in:6 22 | msgid "Forgetpass" 23 | msgstr "" 24 | 25 | #: data/com.github.alexkdeveloper.forgetpass.desktop.in:4 26 | #: data/com.github.alexkdeveloper.forgetpass.appdata.xml.in:7 27 | msgid "Simple password generator for websites" 28 | msgstr "" 29 | 30 | #: data/com.github.alexkdeveloper.forgetpass.desktop.in:11 31 | msgid "Password;Manager;Security;Generate;Derive;" 32 | msgstr "" 33 | 34 | #: data/com.github.alexkdeveloper.forgetpass.appdata.xml.in:9 35 | msgid "" 36 | "You don't need to remember passwords anymore! All you need is a website name " 37 | "and a keyword that is easy to remember. The program will generate a strong " 38 | "password, and if you need it again, just enter the above data and you will " 39 | "get the same password." 40 | msgstr "" 41 | 42 | #: data/com.github.alexkdeveloper.forgetpass.appdata.xml.in:14 43 | msgid "Alex Kryuchkov" 44 | msgstr "" 45 | 46 | #: src/window.vala:27 47 | msgid "Site" 48 | msgstr "" 49 | 50 | #: src/window.vala:28 51 | msgid "" 52 | "Use only the domain name without prefixes, such as http or www, and endings, " 53 | "such as .com, etc." 54 | msgstr "" 55 | 56 | #: src/window.vala:39 57 | msgid "Keyword" 58 | msgstr "" 59 | 60 | #: src/window.vala:40 61 | msgid "" 62 | "Be sure to remember the keyword! If you forget it, you won't be able to " 63 | "recover your password!" 64 | msgstr "" 65 | 66 | #: src/window.vala:60 67 | msgid "GENERATE" 68 | msgstr "" 69 | 70 | #: src/window.vala:70 71 | msgid "Copy password" 72 | msgstr "" 73 | 74 | #: src/window.vala:106 75 | msgid "Enter the name of the site" 76 | msgstr "" 77 | 78 | #: src/window.vala:108 79 | msgid "Enter a keyword" 80 | msgstr "" 81 | 82 | #: src/window.vala:136 83 | msgid "" 84 | "ERROR!!!\n" 85 | "Failed to generate password" 86 | msgstr "" 87 | 88 | #: src/window.vala:152 89 | msgid "_OK" 90 | msgstr "" 91 | -------------------------------------------------------------------------------- /po/it.po: -------------------------------------------------------------------------------- 1 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 2 | # This file is distributed under the same license as the forgetpass package. 3 | # 4 | # Albano Battistella , 2022,2023. 5 | msgid "" 6 | msgstr "" 7 | "Project-Id-Version: forgetpass\n" 8 | "Report-Msgid-Bugs-To: \n" 9 | "POT-Creation-Date: 2022-05-01 14:21+0200\n" 10 | "PO-Revision-Date: 2023-01-24 14:00+0100\n" 11 | "Last-Translator: Albano Battistella \n" 12 | "Language-Team: Italian <>\n" 13 | "Language: it\n" 14 | "MIME-Version: 1.0\n" 15 | "Content-Type: text/plain; charset=UTF-8\n" 16 | "Content-Transfer-Encoding: 8bit\n" 17 | "Plural-Forms: nplurals=2; plural=(n != 1);\n" 18 | "X-Generator: Lokalize 22.04.0\n" 19 | 20 | #: data/com.github.alexkdeveloper.forgetpass.desktop.in:3 21 | #: data/com.github.alexkdeveloper.forgetpass.appdata.xml.in:6 22 | msgid "Forgetpass" 23 | msgstr "Forgetpass" 24 | 25 | #: data/com.github.alexkdeveloper.forgetpass.desktop.in:4 26 | #: data/com.github.alexkdeveloper.forgetpass.appdata.xml.in:7 27 | msgid "Simple password generator for websites" 28 | msgstr "Semplice generatore di password per siti web" 29 | 30 | #: data/com.github.alexkdeveloper.forgetpass.desktop.in:11 31 | msgid "password;generator;security;keyword;" 32 | msgstr "password;generatore;sicurezza;parola chiave;" 33 | 34 | #: data/com.github.alexkdeveloper.forgetpass.appdata.xml.in:9 35 | msgid "" 36 | "You don't need to remember passwords anymore! All you need is a website name " 37 | "and a keyword that is easy to remember. The program will generate a strong " 38 | "password, and if you need it again, just enter the above data and you will " 39 | "get the same password." 40 | msgstr "" 41 | "Non è più necessario ricordare le password! Tutto ciò che serve è il nome di un sito web " 42 | "e una parola chiave facile da ricordare. Il programma genererà una password " 43 | "forte, e se ne hai bisogno di nuovo, inserisci i dati sopra ed otterrai " 44 | "la stessa password." 45 | 46 | #: data/com.github.alexkdeveloper.forgetpass.appdata.xml.in:14 47 | msgid "Alex Kryuchkov" 48 | msgstr "Alex Kryuchkov" 49 | 50 | #: window.vala:14 51 | msgid "Site" 52 | msgstr "Sito" 53 | 54 | #: window.vala:22 55 | msgid "" 56 | "Use only the domain name without prefixes, such as http or www, and endings, " 57 | "such as .com, etc." 58 | msgstr "" 59 | "Utilizza solo il nome di dominio senza prefissi, come http o www, e terminazioni, " 60 | "come .com, ecc." 61 | 62 | #: window.vala:25 63 | msgid "Keyword" 64 | msgstr "Parola chiave" 65 | 66 | #: window.vala:34 67 | msgid "" 68 | "Be sure to remember the keyword! If you forget it, you won't be able to " 69 | "recover your password!" 70 | msgstr "" 71 | "Assicurati di ricordare la parola chiave! Se la dimentichi, non sarai in grado di " 72 | "Recupera la tua password!" 73 | 74 | #: window.vala:36 75 | msgid "GENERATE" 76 | msgstr "GENERARE" 77 | 78 | #: window.vala:78 79 | msgid "Enter the name of the site" 80 | msgstr "Inserisci il nome del sito" 81 | 82 | #: window.vala:83 83 | msgid "Enter a keyword" 84 | msgstr "Inserisci una parola chiave" 85 | 86 | #: window.vala:90 87 | msgid "" 88 | "ERROR!!!\n" 89 | "Failed to generate password" 90 | msgstr "" 91 | "ERRORE!!!\n" 92 | "Impossibile generare la password" 93 | #: window.vala:100 94 | msgid "Message" 95 | msgstr "Messaggio" 96 | -------------------------------------------------------------------------------- /po/meson.build: -------------------------------------------------------------------------------- 1 | i18n.gettext('com.github.alexkdeveloper.forgetpass', preset: 'glib') 2 | -------------------------------------------------------------------------------- /po/nl.po: -------------------------------------------------------------------------------- 1 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 2 | # This file is distributed under the same license as the forgetpass package. 3 | # 4 | # Heimen Stoffels , 2022. 5 | msgid "" 6 | msgstr "" 7 | "Project-Id-Version: forgetpass\n" 8 | "Report-Msgid-Bugs-To: \n" 9 | "POT-Creation-Date: 2024-01-06 16:02+0300\n" 10 | "PO-Revision-Date: 2024-03-24 12:41+0100\n" 11 | "Last-Translator: Heimen Stoffels \n" 12 | "Language-Team: Dutch \n" 13 | "Language: nl_NL\n" 14 | "MIME-Version: 1.0\n" 15 | "Content-Type: text/plain; charset=UTF-8\n" 16 | "Content-Transfer-Encoding: 8bit\n" 17 | "Plural-Forms: nplurals=2; plural=(n != 1);\n" 18 | "X-Generator: Poedit 3.2.2\n" 19 | 20 | #: data/com.github.alexkdeveloper.forgetpass.desktop.in:3 21 | #: data/com.github.alexkdeveloper.forgetpass.appdata.xml.in:6 22 | msgid "Forgetpass" 23 | msgstr "Forgetpass" 24 | 25 | #: data/com.github.alexkdeveloper.forgetpass.desktop.in:4 26 | #: data/com.github.alexkdeveloper.forgetpass.appdata.xml.in:7 27 | msgid "Simple password generator for websites" 28 | msgstr "Eenvoudige wachtwoordgenerator voor websites" 29 | 30 | #: data/com.github.alexkdeveloper.forgetpass.desktop.in:11 31 | msgid "Password;Manager;Security;Generate;Derive;" 32 | msgstr "Wachtwoord;Beheer;Beveiliging;Genereren;Afleiden;" 33 | 34 | #: data/com.github.alexkdeveloper.forgetpass.appdata.xml.in:9 35 | msgid "" 36 | "You don't need to remember passwords anymore! All you need is a website name " 37 | "and a keyword that is easy to remember. The program will generate a strong " 38 | "password, and if you need it again, just enter the above data and you will " 39 | "get the same password." 40 | msgstr "" 41 | "U hoeft voortaan geen wachtwoorden meer te onthouden! Het enige wat u nodig " 42 | "heeft is de naam van een website en een makkelijk te onthouden trefwoord. De " 43 | "toepassing genereert vervolgens een sterk wachtwoord dat u kunt opvragen " 44 | "middels het gekozen trefwoord." 45 | 46 | #: data/com.github.alexkdeveloper.forgetpass.appdata.xml.in:14 47 | msgid "Alex Kryuchkov" 48 | msgstr "Alex Kryuchkov" 49 | 50 | #: src/window.vala:27 51 | msgid "Site" 52 | msgstr "Website" 53 | 54 | #: src/window.vala:28 55 | msgid "" 56 | "Use only the domain name without prefixes, such as http or www, and endings, " 57 | "such as .com, etc." 58 | msgstr "" 59 | "Let op: voer alléén de domeinnaam in, zonder voorvoegsels als ‘http’ of " 60 | "‘www’, en zonder achtervoegsels als .nl of .com." 61 | 62 | #: src/window.vala:39 63 | msgid "Keyword" 64 | msgstr "Trefwoord" 65 | 66 | #: src/window.vala:40 67 | msgid "" 68 | "Be sure to remember the keyword! If you forget it, you won't be able to " 69 | "recover your password!" 70 | msgstr "" 71 | "Let op: onthoud dit trefwoord goed! Als u het woord vergeet, dan kunt u uw " 72 | "wachtwoord niet herstellen!" 73 | 74 | #: src/window.vala:60 75 | msgid "GENERATE" 76 | msgstr "GENEREREN" 77 | 78 | #: src/window.vala:70 79 | msgid "Copy password" 80 | msgstr "Wachtwoord kopiëren" 81 | 82 | #: src/window.vala:106 83 | msgid "Enter the name of the site" 84 | msgstr "Voer de naam van de website in" 85 | 86 | #: src/window.vala:108 87 | msgid "Enter a keyword" 88 | msgstr "Voer een trefwoord in" 89 | 90 | #: src/window.vala:136 91 | msgid "" 92 | "ERROR!!!\n" 93 | "Failed to generate password" 94 | msgstr "" 95 | "Foutmelding:\n" 96 | "het wachtwoord kan niet worden gegenereerd" 97 | 98 | #: src/window.vala:152 99 | msgid "_OK" 100 | msgstr "_Oké" 101 | 102 | #~ msgid "Minor UI update" 103 | #~ msgstr "Verbeterd: vormgeving" 104 | 105 | #~ msgid "Updated Italian translation" 106 | #~ msgstr "Bijgewerkt: Italiaanse vertaling" 107 | 108 | #~ msgid "Port to AdwEntryRow" 109 | #~ msgstr "Nieuw: gemigreerd naar AdwEntryRow" 110 | 111 | #~ msgid "Added the ability to copy the password to the clipboard" 112 | #~ msgstr "Nieuw: mogelijkheid om wachtwoord te kopiëren naar klembord" 113 | 114 | #~ msgid "The app icon has been updated" 115 | #~ msgstr "Bijgewerkt: toepassingspictogram" 116 | 117 | #~ msgid "Added Spanish and Basque translations" 118 | #~ msgstr "Nieuw: Spaanse en Baskische vertalingen" 119 | 120 | #~ msgid "Update to GNOME Platform version 43" 121 | #~ msgstr "Bijgewerkt: GNOME-platform naar versie 43" 122 | 123 | #~ msgid "Pop-up messages were introduced" 124 | #~ msgstr "Nieuw: pop-upmeldingen" 125 | 126 | #~ msgid "Added Italian translation" 127 | #~ msgstr "Nieuw: Italiaanse vertaling" 128 | 129 | #~ msgid "Added Russian translation" 130 | #~ msgstr "Nieuw: Russische vertaling" 131 | 132 | #~ msgid "Libadwaita is included in the application" 133 | #~ msgstr "Nieuw: Libadwaita wordt voorgaan meegeleverd" 134 | 135 | #~ msgid "Added Dutch translation" 136 | #~ msgstr "Nieuw: Nederlandse vertaling" 137 | 138 | #~ msgid "Initial release" 139 | #~ msgstr "Eerste versie" 140 | 141 | #~ msgid "password;generator;security;keyword;" 142 | #~ msgstr "wachtwoord;generator;beveiliging;trefwoord;" 143 | -------------------------------------------------------------------------------- /po/ru.po: -------------------------------------------------------------------------------- 1 | msgid "" 2 | msgstr "" 3 | "Project-Id-Version: \n" 4 | "POT-Creation-Date: 2024-03-24 15:51+0800\n" 5 | "PO-Revision-Date: 2024-03-24 15:52+0800\n" 6 | "Last-Translator: \n" 7 | "Language-Team: \n" 8 | "Language: ru_RU\n" 9 | "MIME-Version: 1.0\n" 10 | "Content-Type: text/plain; charset=UTF-8\n" 11 | "Content-Transfer-Encoding: 8bit\n" 12 | "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " 13 | "n%10<=4 && (n%100<12 || n%100>14) ? 1 : 2);\n" 14 | "X-Generator: Poedit 3.4.2\n" 15 | "X-Poedit-Basepath: ../src\n" 16 | "X-Poedit-SearchPath-0: .\n" 17 | 18 | #: window.vala:27 19 | msgid "Site" 20 | msgstr "Сайт" 21 | 22 | #: window.vala:28 23 | msgid "" 24 | "Use only the domain name without prefixes, such as http or www, and endings, " 25 | "such as .com, etc." 26 | msgstr "" 27 | "Используйте только доменное имя без префиксов, таких как http или www, и " 28 | "окончаний, таких как .com и т.д." 29 | 30 | #: window.vala:39 31 | msgid "Keyword" 32 | msgstr "Ключевое слово" 33 | 34 | #: window.vala:40 35 | msgid "" 36 | "Be sure to remember the keyword! If you forget it, you won't be able to " 37 | "recover your password!" 38 | msgstr "" 39 | "Обязательно запомните ключевое слово! Если вы забудете его, вы не сможете " 40 | "восстановить свой пароль!" 41 | 42 | #: window.vala:60 43 | msgid "GENERATE" 44 | msgstr "СОЗДАТЬ" 45 | 46 | #: window.vala:70 47 | msgid "Copy password" 48 | msgstr "Скопировать пароль" 49 | 50 | #: window.vala:105 51 | msgid "Enter the name of the site" 52 | msgstr "Введите название сайта" 53 | 54 | #: window.vala:107 55 | msgid "Enter a keyword" 56 | msgstr "Введите ключевое слово" 57 | 58 | #: window.vala:135 59 | msgid "" 60 | "ERROR!!!\n" 61 | "Failed to generate password" 62 | msgstr "" 63 | "ОШИБКА!!!\n" 64 | "Не удалось создать пароль" 65 | 66 | #: window.vala:151 67 | msgid "_OK" 68 | msgstr "" 69 | 70 | #~ msgid "Message" 71 | #~ msgstr "Сообщение" 72 | -------------------------------------------------------------------------------- /po/tr.po: -------------------------------------------------------------------------------- 1 | # Turkish translation for com.github.alexkdeveloper.forgetpass. 2 | # Copyright (C) 2024 com.github.alexkdeveloper.forgetpass's COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the com.github.alexkdeveloper.forgetpass package. 4 | # 5 | # Sabri Ünal , 2024. 6 | # 7 | msgid "" 8 | msgstr "" 9 | "Project-Id-Version: com.github.alexkdeveloper.forgetpass\n" 10 | "Report-Msgid-Bugs-To: \n" 11 | "POT-Creation-Date: 2024-01-06 16:02+0300\n" 12 | "PO-Revision-Date: 2024-01-06 16:05+0300\n" 13 | "Last-Translator: Sabri Ünal \n" 14 | "Language-Team: Turkish \n" 15 | "Language: tr\n" 16 | "MIME-Version: 1.0\n" 17 | "Content-Type: text/plain; charset=UTF-8\n" 18 | "Content-Transfer-Encoding: 8bit\n" 19 | "X-Generator: Poedit 3.4.2\n" 20 | 21 | #: data/com.github.alexkdeveloper.forgetpass.desktop.in:3 22 | #: data/com.github.alexkdeveloper.forgetpass.appdata.xml.in:6 23 | msgid "Forgetpass" 24 | msgstr "Forgetpass" 25 | 26 | #: data/com.github.alexkdeveloper.forgetpass.desktop.in:4 27 | #: data/com.github.alexkdeveloper.forgetpass.appdata.xml.in:7 28 | msgid "Simple password generator for websites" 29 | msgstr "Web siteleri için basit şifre oluşturucu" 30 | 31 | #: data/com.github.alexkdeveloper.forgetpass.desktop.in:11 32 | msgid "Password;Manager;Security;Generate;Derive;" 33 | msgstr "Şifre;Parola;Yönetici;Güvenlik;Oluştur;Türet;" 34 | 35 | #: data/com.github.alexkdeveloper.forgetpass.appdata.xml.in:9 36 | msgid "" 37 | "You don't need to remember passwords anymore! All you need is a website name " 38 | "and a keyword that is easy to remember. The program will generate a strong " 39 | "password, and if you need it again, just enter the above data and you will " 40 | "get the same password." 41 | msgstr "" 42 | "Artık parolaları hatırlamanıza gerek yok! Tek ihtiyacınız olan web sitesinin " 43 | "adı ve hatırlaması kolay bir anahtar sözcük. Program güçlü bir parola " 44 | "oluşturacak ve tekrar ihtiyacınız olduğunda yukarıdaki verileri girmeniz " 45 | "yeterli olacaktır. Böylece aynı parolayı alabilirsiniz." 46 | 47 | #: data/com.github.alexkdeveloper.forgetpass.appdata.xml.in:14 48 | msgid "Alex Kryuchkov" 49 | msgstr "Alex Kryuchkov" 50 | 51 | #: src/window.vala:27 52 | msgid "Site" 53 | msgstr "Web sitesi" 54 | 55 | #: src/window.vala:28 56 | msgid "" 57 | "Use only the domain name without prefixes, such as http or www, and endings, " 58 | "such as .com, etc." 59 | msgstr "" 60 | "http veya www gibi ön ekler ve .com gibi son ekler olmadan alan adını " 61 | "kullanın." 62 | 63 | #: src/window.vala:39 64 | msgid "Keyword" 65 | msgstr "Anahtar sözcük" 66 | 67 | #: src/window.vala:40 68 | msgid "" 69 | "Be sure to remember the keyword! If you forget it, you won't be able to " 70 | "recover your password!" 71 | msgstr "" 72 | "Anahtar sözcüğü hatırladığınızdan emin olun! Eğer unutursanız, paralonazı " 73 | "kurtarmanız mümkün olmayacaktır!" 74 | 75 | #: src/window.vala:60 76 | msgid "GENERATE" 77 | msgstr "Oluştur" 78 | 79 | #: src/window.vala:70 80 | msgid "Copy password" 81 | msgstr "Parolayı kopyala" 82 | 83 | #: src/window.vala:106 84 | msgid "Enter the name of the site" 85 | msgstr "Web sitesinin adını girin" 86 | 87 | #: src/window.vala:108 88 | msgid "Enter a keyword" 89 | msgstr "Anahtar sözcük girin" 90 | 91 | #: src/window.vala:136 92 | msgid "" 93 | "ERROR!!!\n" 94 | "Failed to generate password" 95 | msgstr "" 96 | "HATA!!!\n" 97 | "Parola oluşturulamadı" 98 | 99 | #: src/window.vala:152 100 | msgid "_OK" 101 | msgstr "_Tamam" 102 | -------------------------------------------------------------------------------- /po/uk_UA.po: -------------------------------------------------------------------------------- 1 | # Ukrainian translation for Forgetpass. 2 | # Copyright (C) 2024 THE Forgetpass'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the Forgetpass package. 4 | # volkov , 2024. 5 | # 6 | msgid "" 7 | msgstr "" 8 | "Project-Id-Version: Forgetpass\n" 9 | "Report-Msgid-Bugs-To: \n" 10 | "POT-Creation-Date: 2024-01-06 16:02+0300\n" 11 | "PO-Revision-Date: 2024-01-09 20:20+0200\n" 12 | "Last-Translator: volkov \n" 13 | "Language-Team: volkov \n" 14 | "Language: uk_UA\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " 19 | "n%10<=4 && (n%100<12 || n%100>14) ? 1 : 2);\n" 20 | "X-Generator: Poedit 3.4\n" 21 | 22 | #: data/com.github.alexkdeveloper.forgetpass.desktop.in:3 23 | #: data/com.github.alexkdeveloper.forgetpass.appdata.xml.in:6 24 | msgid "Forgetpass" 25 | msgstr "" 26 | 27 | #: data/com.github.alexkdeveloper.forgetpass.desktop.in:4 28 | #: data/com.github.alexkdeveloper.forgetpass.appdata.xml.in:7 29 | msgid "Simple password generator for websites" 30 | msgstr "Простий генератор паролів для веб-сайтів" 31 | 32 | #: data/com.github.alexkdeveloper.forgetpass.desktop.in:11 33 | msgid "Password;Manager;Security;Generate;Derive;" 34 | msgstr "" 35 | "Password;Manager;Security;Generate;Derive;пароль;безпека;генерувати;створити;" 36 | "згадати;сайт;менеджер;пассворд;секрет;" 37 | 38 | #: data/com.github.alexkdeveloper.forgetpass.appdata.xml.in:9 39 | msgid "" 40 | "You don't need to remember passwords anymore! All you need is a website name " 41 | "and a keyword that is easy to remember. The program will generate a strong " 42 | "password, and if you need it again, just enter the above data and you will " 43 | "get the same password." 44 | msgstr "" 45 | "Вам не потрібно більше запам'ятовувати паролі! Все що вам треба - назва " 46 | "сайту і ключове слово які легко запам'ятати. Програма згенерує надійний " 47 | "пароль, і якщо вам знову знадобиться, просто введіть ці дані знову і ви " 48 | "отримаєте той же пароль." 49 | 50 | #: data/com.github.alexkdeveloper.forgetpass.appdata.xml.in:14 51 | msgid "Alex Kryuchkov" 52 | msgstr "" 53 | 54 | #: src/window.vala:27 55 | msgid "Site" 56 | msgstr "Сайт" 57 | 58 | #: src/window.vala:28 59 | msgid "" 60 | "Use only the domain name without prefixes, such as http or www, and endings, " 61 | "such as .com, etc." 62 | msgstr "" 63 | "Використовуйте тільки назву домену без префіксів як http або www, і без " 64 | "закінченнь як .com" 65 | 66 | #: src/window.vala:39 67 | msgid "Keyword" 68 | msgstr "Ключове слово" 69 | 70 | #: src/window.vala:40 71 | msgid "" 72 | "Be sure to remember the keyword! If you forget it, you won't be able to " 73 | "recover your password!" 74 | msgstr "" 75 | "Запам'ятайте це ключове слово! Якщо ви його забудете, ви не зможете " 76 | "відновити пароль!" 77 | 78 | #: src/window.vala:60 79 | msgid "GENERATE" 80 | msgstr "ЗГЕНЕРУВАТИ" 81 | 82 | #: src/window.vala:70 83 | msgid "Copy password" 84 | msgstr "Скопіювати пароль" 85 | 86 | #: src/window.vala:106 87 | msgid "Enter the name of the site" 88 | msgstr "Введіть назву сайту" 89 | 90 | #: src/window.vala:108 91 | msgid "Enter a keyword" 92 | msgstr "Введіть ключове слово" 93 | 94 | #: src/window.vala:136 95 | msgid "" 96 | "ERROR!!!\n" 97 | "Failed to generate password" 98 | msgstr "" 99 | "Помилка!\n" 100 | "Не вдалося згенерувати пароль" 101 | 102 | #: src/window.vala:152 103 | msgid "_OK" 104 | msgstr "_Добре" 105 | -------------------------------------------------------------------------------- /src/crypto.vala: -------------------------------------------------------------------------------- 1 | 2 | public errordomain CryptoError { 3 | DERIVATION_FAILED 4 | } 5 | 6 | public class Crypto { 7 | public static string derive_password (string cipher_key, string salt) throws CryptoError { 8 | var keybuffer = new uint8[16]; 9 | 10 | const char[] ALLOWED_CHARS = { 11 | '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 12 | 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 13 | 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 14 | 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 15 | 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 16 | '!', '#', '$', '%', '&', '(', ')', '*', '+', '-', ';', '<', '=', 17 | '>', '?', '@', '^', '_', '`', '{', '|', '}', '~' 18 | }; 19 | 20 | var error = GCrypt.KeyDerivation.derive ( 21 | cipher_key.data, 22 | GCrypt.KeyDerivation.Algorithm.PBKDF2, 23 | GCrypt.Hash.Algorithm.SHA256, 24 | salt.data, 25 | 10000, 26 | keybuffer 27 | ); 28 | 29 | if (error.code () != GCrypt.ErrorCode.NO_ERROR) { 30 | throw new CryptoError.DERIVATION_FAILED (error.to_string ()); 31 | } 32 | 33 | var derived_characters = new StringBuilder.sized (keybuffer.length); 34 | 35 | for (ushort index = 0; index < keybuffer.length; index++) { 36 | var character = ALLOWED_CHARS[keybuffer[index] % ALLOWED_CHARS.length]; 37 | derived_characters.append_c (character); 38 | } 39 | 40 | return derived_characters.str; 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /src/main.vala: -------------------------------------------------------------------------------- 1 | 2 | public class ForgetPass : Adw.Application { 3 | public ForgetPass () { 4 | Object ( 5 | application_id: "com.github.alexkdeveloper.forgetpass", 6 | flags : GLib.ApplicationFlags.FLAGS_NONE 7 | ); 8 | } 9 | 10 | public override void activate () { 11 | var win = this.active_window; 12 | if (win == null) { 13 | win = new Forgetpass.MainWindow (this); 14 | } 15 | win.present (); 16 | } 17 | } 18 | 19 | int main (string[] args) { 20 | Intl.bindtextdomain (Config.GETTEXT_PACKAGE, Config.LOCALEDIR); 21 | Intl.bind_textdomain_codeset (Config.GETTEXT_PACKAGE, "UTF-8"); 22 | Intl.textdomain (Config.GETTEXT_PACKAGE); 23 | var app = new ForgetPass (); 24 | return app.run (args); 25 | } 26 | -------------------------------------------------------------------------------- /src/meson.build: -------------------------------------------------------------------------------- 1 | forgetpass_sources = [ 2 | 'main.vala', 3 | 'crypto.vala', 4 | 'window.vala', 5 | ] 6 | 7 | forgetpass_deps = [ 8 | dependency('gee-0.8'), 9 | dependency('gio-2.0', version: '>= 2.50'), 10 | dependency ('gtk4', version: '>= 4.0.0'), 11 | dependency('libadwaita-1'), 12 | declare_dependency (dependencies: [ 13 | meson.get_compiler ('c').find_library ('libgcrypt'), 14 | meson.get_compiler ('vala').find_library ('gcrypt', dirs: join_paths (meson.current_source_dir (), 'vapi')) 15 | ]) 16 | ] 17 | 18 | executable('com.github.alexkdeveloper.forgetpass', forgetpass_sources, 19 | include_directories: config_h_dir, 20 | vala_args: ['--target-glib=2.50', meson.source_root() + '/src/vapi/config.vapi'], 21 | c_args: ['-include', 'config.h'], dependencies: forgetpass_deps, 22 | install: true, 23 | ) 24 | -------------------------------------------------------------------------------- /src/vapi/config.vapi: -------------------------------------------------------------------------------- 1 | [CCode (lower_case_cprefix = "", cheader_filename = "config.h")] 2 | namespace Config { 3 | public const string GETTEXT_PACKAGE; 4 | public const string LOCALEDIR; 5 | } -------------------------------------------------------------------------------- /src/vapi/gcrypt.vapi: -------------------------------------------------------------------------------- 1 | 2 | [CCode (cheader_filename = "gcrypt.h", lower_case_cprefix = "gcry_")] 3 | namespace GCrypt { 4 | [CCode (cname = "gpg_err_source_t", cprefix = "GPG_ERR_SOURCE_")] 5 | public enum ErrorSource { 6 | UNKNOWN, 7 | GCRYPT, 8 | GPG, 9 | GPGSM, 10 | GPGAGENT, 11 | PINENTRY, 12 | SCD, 13 | GPGME, 14 | KEYBOX, 15 | KSBA, 16 | DIRMNGR, 17 | GSTI, 18 | ANY, 19 | USER_1, 20 | USER_2, 21 | USER_3, 22 | USER_4, 23 | 24 | /* This is one more than the largest allowed entry. */ 25 | DIM 26 | } 27 | 28 | [CCode (cname = "gpg_err_code_t", cprefix = "GPG_ERR_")] 29 | public enum ErrorCode { 30 | NO_ERROR, 31 | GENERAL, 32 | UNKNOWN_PACKET, 33 | UNKNOWN_VERSION, 34 | PUBKEY_ALGO, 35 | DIGEST_ALGO, 36 | BAD_PUBKEY, 37 | BAD_SECKEY, 38 | BAD_SIGNATURE, 39 | NO_PUBKEY, 40 | CHECKSUM, 41 | BAD_PASSPHRASE, 42 | CIPHER_ALGO, 43 | KEYRING_OPEN, 44 | INV_PACKET, 45 | INV_ARMOR, 46 | NO_USER_ID, 47 | NO_SECKEY, 48 | WRONG_SECKEY, 49 | BAD_KEY, 50 | COMPR_ALGO, 51 | NO_PRIME, 52 | NO_ENCODING_METHOD, 53 | NO_ENCRYPTION_SCHEME, 54 | NO_SIGNATURE_SCHEME, 55 | INV_ATTR, 56 | NO_VALUE, 57 | NOT_FOUND, 58 | VALUE_NOT_FOUND, 59 | SYNTAX, 60 | BAD_MPI, 61 | INV_PASSPHRASE, 62 | SIG_CLASS, 63 | RESOURCE_LIMIT, 64 | INV_KEYRING, 65 | TRUSTDB, 66 | BAD_CERT, 67 | INV_USER_ID, 68 | UNEXPECTED, 69 | TIME_CONFLICT, 70 | KEYSERVER, 71 | WRONG_PUBKEY_ALGO, 72 | TRIBUTE_TO_D_A, 73 | WEAK_KEY, 74 | INV_KEYLEN, 75 | INV_ARG, 76 | BAD_URI, 77 | INV_URI, 78 | NETWORK, 79 | UNKNOWN_HOST, 80 | SELFTEST_FAILED, 81 | NOT_ENCRYPTED, 82 | NOT_PROCESSED, 83 | UNUSABLE_PUBKEY, 84 | UNUSABLE_SECKEY, 85 | INV_VALUE, 86 | BAD_CERT_CHAIN, 87 | MISSING_CERT, 88 | NO_DATA, 89 | BUG, 90 | NOT_SUPPORTED, 91 | INV_OP, 92 | TIMEOUT, 93 | INTERNAL, 94 | EOF_GCRYPT, 95 | INV_OBJ, 96 | TOO_SHORT, 97 | TOO_LARGE, 98 | NO_OBJ, 99 | NOT_IMPLEMENTED, 100 | CONFLICT, 101 | INV_CIPHER_MODE, 102 | INV_FLAG, 103 | INV_HANDLE, 104 | TRUNCATED, 105 | INCOMPLETE_LINE, 106 | INV_RESPONSE, 107 | NO_AGENT, 108 | AGENT, 109 | INV_DATA, 110 | ASSUAN_SERVER_FAULT, 111 | ASSUAN, 112 | INV_SESSION_KEY, 113 | INV_SEXP, 114 | UNSUPPORTED_ALGORITHM, 115 | NO_PIN_ENTRY, 116 | PIN_ENTRY, 117 | BAD_PIN, 118 | INV_NAME, 119 | BAD_DATA, 120 | INV_PARAMETER, 121 | WRONG_CARD, 122 | NO_DIRMNGR, 123 | DIRMNGR, 124 | CERT_REVOKED, 125 | NO_CRL_KNOWN, 126 | CRL_TOO_OLD, 127 | LINE_TOO_LONG, 128 | NOT_TRUSTED, 129 | CANCELED, 130 | BAD_CA_CERT, 131 | CERT_EXPIRED, 132 | CERT_TOO_YOUNG, 133 | UNSUPPORTED_CERT, 134 | UNKNOWN_SEXP, 135 | UNSUPPORTED_PROTECTION, 136 | CORRUPTED_PROTECTION, 137 | AMBIGUOUS_NAME, 138 | CARD, 139 | CARD_RESET, 140 | CARD_REMOVED, 141 | INV_CARD, 142 | CARD_NOT_PRESENT, 143 | NO_PKCS15_APP, 144 | NOT_CONFIRMED, 145 | CONFIGURATION, 146 | NO_POLICY_MATCH, 147 | INV_INDEX, 148 | INV_ID, 149 | NO_SCDAEMON, 150 | SCDAEMON, 151 | UNSUPPORTED_PROTOCOL, 152 | BAD_PIN_METHOD, 153 | CARD_NOT_INITIALIZED, 154 | UNSUPPORTED_OPERATION, 155 | WRONG_KEY_USAGE, 156 | NOTHING_FOUND, 157 | WRONG_BLOB_TYPE, 158 | MISSING_VALUE, 159 | HARDWARE, 160 | PIN_BLOCKED, 161 | USE_CONDITIONS, 162 | PIN_NOT_SYNCED, 163 | INV_CRL, 164 | BAD_BER, 165 | INV_BER, 166 | ELEMENT_NOT_FOUND, 167 | IDENTIFIER_NOT_FOUND, 168 | INV_TAG, 169 | INV_LENGTH, 170 | INV_KEYINFO, 171 | UNEXPECTED_TAG, 172 | NOT_DER_ENCODED, 173 | NO_CMS_OBJ, 174 | INV_CMS_OBJ, 175 | UNKNOWN_CMS_OBJ, 176 | UNSUPPORTED_CMS_OBJ, 177 | UNSUPPORTED_ENCODING, 178 | UNSUPPORTED_CMS_VERSION, 179 | UNKNOWN_ALGORITHM, 180 | INV_ENGINE, 181 | PUBKEY_NOT_TRUSTED, 182 | DECRYPT_FAILED, 183 | KEY_EXPIRED, 184 | SIG_EXPIRED, 185 | ENCODING_PROBLEM, 186 | INV_STATE, 187 | DUP_VALUE, 188 | MISSING_ACTION, 189 | MODULE_NOT_FOUND, 190 | INV_OID_STRING, 191 | INV_TIME, 192 | INV_CRL_OBJ, 193 | UNSUPPORTED_CRL_VERSION, 194 | INV_CERT_OBJ, 195 | UNKNOWN_NAME, 196 | LOCALE_PROBLEM, 197 | NOT_LOCKED, 198 | PROTOCOL_VIOLATION, 199 | INV_MAC, 200 | INV_REQUEST, 201 | UNKNOWN_EXTN, 202 | UNKNOWN_CRIT_EXTN, 203 | LOCKED, 204 | UNKNOWN_OPTION, 205 | UNKNOWN_COMMAND, 206 | BUFFER_TOO_SHORT, 207 | SEXP_INV_LEN_SPEC, 208 | SEXP_STRING_TOO_LONG, 209 | SEXP_UNMATCHED_PAREN, 210 | SEXP_NOT_CANONICAL, 211 | SEXP_BAD_CHARACTER, 212 | SEXP_BAD_QUOTATION, 213 | SEXP_ZERO_PREFIX, 214 | SEXP_NESTED_DH, 215 | SEXP_UNMATCHED_DH, 216 | SEXP_UNEXPECTED_PUNC, 217 | SEXP_BAD_HEX_CHAR, 218 | SEXP_ODD_HEX_NUMBERS, 219 | SEXP_BAD_OCT_CHAR, 220 | ASS_GENERAL, 221 | ASS_ACCEPT_FAILED, 222 | ASS_CONNECT_FAILED, 223 | ASS_INV_RESPONSE, 224 | ASS_INV_VALUE, 225 | ASS_INCOMPLETE_LINE, 226 | ASS_LINE_TOO_LONG, 227 | ASS_NESTED_COMMANDS, 228 | ASS_NO_DATA_CB, 229 | ASS_NO_INQUIRE_CB, 230 | ASS_NOT_A_SERVER, 231 | ASS_NOT_A_CLIENT, 232 | ASS_SERVER_START, 233 | ASS_READ_ERROR, 234 | ASS_WRITE_ERROR, 235 | ASS_TOO_MUCH_DATA, 236 | ASS_UNEXPECTED_CMD, 237 | ASS_UNKNOWN_CMD, 238 | ASS_SYNTAX, 239 | ASS_CANCELED, 240 | ASS_NO_INPUT, 241 | ASS_NO_OUTPUT, 242 | ASS_PARAMETER, 243 | ASS_UNKNOWN_INQUIRE, 244 | USER_1, 245 | USER_2, 246 | USER_3, 247 | USER_4, 248 | USER_5, 249 | USER_6, 250 | USER_7, 251 | USER_8, 252 | USER_9, 253 | USER_10, 254 | USER_11, 255 | USER_12, 256 | USER_13, 257 | USER_14, 258 | USER_15, 259 | USER_16, 260 | MISSING_ERRNO, 261 | UNKNOWN_ERRNO, 262 | EOF, 263 | 264 | E2BIG, 265 | EACCES, 266 | EADDRINUSE, 267 | EADDRNOTAVAIL, 268 | EADV, 269 | EAFNOSUPPORT, 270 | EAGAIN, 271 | EALREADY, 272 | EAUTH, 273 | EBACKGROUND, 274 | EBADE, 275 | EBADF, 276 | EBADFD, 277 | EBADMSG, 278 | EBADR, 279 | EBADRPC, 280 | EBADRQC, 281 | EBADSLT, 282 | EBFONT, 283 | EBUSY, 284 | ECANCELED, 285 | ECHILD, 286 | ECHRNG, 287 | ECOMM, 288 | ECONNABORTED, 289 | ECONNREFUSED, 290 | ECONNRESET, 291 | ED, 292 | EDEADLK, 293 | EDEADLOCK, 294 | EDESTADDRREQ, 295 | EDIED, 296 | EDOM, 297 | EDOTDOT, 298 | EDQUOT, 299 | EEXIST, 300 | EFAULT, 301 | EFBIG, 302 | EFTYPE, 303 | EGRATUITOUS, 304 | EGREGIOUS, 305 | EHOSTDOWN, 306 | EHOSTUNREACH, 307 | EIDRM, 308 | EIEIO, 309 | EILSEQ, 310 | EINPROGRESS, 311 | EINTR, 312 | EINVAL, 313 | EIO, 314 | EISCONN, 315 | EISDIR, 316 | EISNAM, 317 | EL2HLT, 318 | EL2NSYNC, 319 | EL3HLT, 320 | EL3RST, 321 | ELIBACC, 322 | ELIBBAD, 323 | ELIBEXEC, 324 | ELIBMAX, 325 | ELIBSCN, 326 | ELNRNG, 327 | ELOOP, 328 | EMEDIUMTYPE, 329 | EMFILE, 330 | EMLINK, 331 | EMSGSIZE, 332 | EMULTIHOP, 333 | ENAMETOOLONG, 334 | ENAVAIL, 335 | ENEEDAUTH, 336 | ENETDOWN, 337 | ENETRESET, 338 | ENETUNREACH, 339 | ENFILE, 340 | ENOANO, 341 | ENOBUFS, 342 | ENOCSI, 343 | ENODATA, 344 | ENODEV, 345 | ENOENT, 346 | ENOEXEC, 347 | ENOLCK, 348 | ENOLINK, 349 | ENOMEDIUM, 350 | ENOMEM, 351 | ENOMSG, 352 | ENONET, 353 | ENOPKG, 354 | ENOPROTOOPT, 355 | ENOSPC, 356 | ENOSR, 357 | ENOSTR, 358 | ENOSYS, 359 | ENOTBLK, 360 | ENOTCONN, 361 | ENOTDIR, 362 | ENOTEMPTY, 363 | ENOTNAM, 364 | ENOTSOCK, 365 | ENOTSUP, 366 | ENOTTY, 367 | ENOTUNIQ, 368 | ENXIO, 369 | EOPNOTSUPP, 370 | EOVERFLOW, 371 | EPERM, 372 | EPFNOSUPPORT, 373 | EPIPE, 374 | EPROCLIM, 375 | EPROCUNAVAIL, 376 | EPROGMISMATCH, 377 | EPROGUNAVAIL, 378 | EPROTO, 379 | EPROTONOSUPPORT, 380 | EPROTOTYPE, 381 | ERANGE, 382 | EREMCHG, 383 | EREMOTE, 384 | EREMOTEIO, 385 | ERESTART, 386 | EROFS, 387 | ERPCMISMATCH, 388 | ESHUTDOWN, 389 | ESOCKTNOSUPPORT, 390 | ESPIPE, 391 | ESRCH, 392 | ESRMNT, 393 | ESTALE, 394 | ESTRPIPE, 395 | ETIME, 396 | ETIMEDOUT, 397 | ETOOMANYREFS, 398 | ETXTBSY, 399 | EUCLEAN, 400 | EUNATCH, 401 | EUSERS, 402 | EWOULDBLOCK, 403 | EXDEV, 404 | EXFULL, 405 | 406 | /* This is one more than the largest allowed entry. */ 407 | CODE_DIM 408 | } 409 | 410 | [CCode (cname = "gcry_error_t", cprefix = "gpg_err_")] 411 | public struct Error : uint { 412 | [CCode (cname = "gcry_err_make")] 413 | public Error (ErrorSource source, ErrorCode code); 414 | [CCode (cname = "gcry_err_make_from_errno")] 415 | public Error.from_errno (ErrorSource source, int err); 416 | public ErrorCode code (); 417 | public ErrorSource source (); 418 | 419 | [CCode (cname = "gcry_strerror")] 420 | public unowned string to_string (); 421 | 422 | [CCode (cname = "gcry_strsource")] 423 | public unowned string source_to_string (); 424 | } 425 | 426 | [CCode (cname = "enum gcry_ctl_cmds", cprefix = "GCRYCTL_")] 427 | public enum ControlCommand { 428 | SET_KEY, 429 | SET_IV, 430 | CFB_SYNC, 431 | RESET, 432 | FINALIZE, 433 | GET_KEYLEN, 434 | GET_BLKLEN, 435 | TEST_ALGO, 436 | IS_SECURE, 437 | GET_ASNOID, 438 | ENABLE_ALGO, 439 | DISABLE_ALGO, 440 | DUMP_RANDOM_STATS, 441 | DUMP_SECMEM_STATS, 442 | GET_ALGO_NPKEY, 443 | GET_ALGO_NSKEY, 444 | GET_ALGO_NSIGN, 445 | GET_ALGO_NENCR, 446 | SET_VERBOSITY, 447 | SET_DEBUG_FLAGS, 448 | CLEAR_DEBUG_FLAGS, 449 | USE_SECURE_RNDPOOL, 450 | DUMP_MEMORY_STATS, 451 | INIT_SECMEM, 452 | TERM_SECMEM, 453 | DISABLE_SECMEM_WARN, 454 | SUSPEND_SECMEM_WARN, 455 | RESUME_SECMEM_WARN, 456 | DROP_PRIVS, 457 | ENABLE_M_GUARD, 458 | START_DUMP, 459 | STOP_DUMP, 460 | GET_ALGO_USAGE, 461 | IS_ALGO_ENABLED, 462 | DISABLE_INTERNAL_LOCKING, 463 | DISABLE_SECMEM, 464 | INITIALIZATION_FINISHED, 465 | INITIALIZATION_FINISHED_P, 466 | ANY_INITIALIZATION_P, 467 | SET_CBC_CTS, 468 | SET_CBC_MAC, 469 | SET_CTR, 470 | ENABLE_QUICK_RANDOM, 471 | SET_RANDOM_SEED_FILE, 472 | UPDATE_RANDOM_SEED_FILE, 473 | SET_THREAD_CBS, 474 | FAST_POLL 475 | } 476 | public Error control (ControlCommand cmd, ...); 477 | 478 | [CCode (lower_case_cname = "cipher_")] 479 | namespace Cipher { 480 | [CCode (cname = "enum gcry_cipher_algos", cprefix = "GCRY_CIPHER_")] 481 | public enum Algorithm { 482 | NONE, 483 | IDEA, 484 | 3DES, 485 | CAST5, 486 | BLOWFISH, 487 | SAFER_SK128, 488 | DES_SK, 489 | AES, 490 | AES128, 491 | RIJNDAEL, 492 | RIJNDAEL128, 493 | AES192, 494 | RIJNDAEL192, 495 | AES256, 496 | RIJNDAEL256, 497 | TWOFISH, 498 | TWOFISH128, 499 | ARCFOUR, 500 | DES, 501 | SERPENT128, 502 | SERPENT192, 503 | SERPENT256, 504 | RFC2268_40, 505 | RFC2268_128, 506 | SEED, 507 | CAMELLIA128, 508 | CAMELLIA192, 509 | CAMELLIA256, 510 | SALSA20, 511 | SALSA20R12, 512 | GOST28147, 513 | CHACHA20; 514 | 515 | [CCode (cname = "gcry_cipher_algo_info")] 516 | public Error info (ControlCommand what, ref uchar[] buffer); 517 | [CCode (cname = "gcry_cipher_algo_name")] 518 | public unowned string to_string (); 519 | [CCode (cname = "gcry_cipher_map_name")] 520 | public static Algorithm from_string (string name); 521 | [CCode (cname = "gcry_cipher_map_oid")] 522 | public static Algorithm from_oid (string oid); 523 | } 524 | 525 | [CCode (cname = "enum gcry_cipher_modes", cprefix = "GCRY_CIPHER_MODE_")] 526 | public enum Mode { 527 | NONE, /* No mode specified */ 528 | ECB, /* Electronic Codebook */ 529 | CFB, /* Cipher Feedback */ 530 | CFB8, /* Cipher Feedback */ 531 | CBC, /* Cipher Block Chaining */ 532 | STREAM, /* Used with stream ciphers */ 533 | OFB, /* Output Feedback */ 534 | CTR, /* Counter */ 535 | AESWRAP, 536 | CCM, /* Counter with CBC-MAC */ 537 | GCM, /* Galois/Counter Mode */ 538 | POLY1305, 539 | OCB 540 | } 541 | 542 | [CCode (cname = "enum gcry_cipher_flags", cprefix = "GCRY_CIPHER_")] 543 | public enum Flag { 544 | SECURE, /* Allocate in secure memory. */ 545 | ENABLE_SYNC, /* Enable CFB sync mode. */ 546 | CBC_CTS, /* Enable CBC cipher text stealing (CTS). */ 547 | CBC_MAC /* Enable CBC message auth. code (MAC). */ 548 | } 549 | [Compact] 550 | [CCode (cname = "gcry_cipher_hd_t", lower_case_cprefix = "gcry_cipher_", free_function = "gcry_cipher_close")] 551 | public class Cipher { 552 | public static Error open (out Cipher cipher, Algorithm algo, Mode mode, Flag flags); 553 | public void close (); 554 | [CCode (cname = "gcry_cipher_ctl")] 555 | public Error control (ControlCommand cmd, uchar[] buffer); 556 | public Error info (ControlCommand what, ref uchar[] buffer); 557 | 558 | public Error encrypt (uchar[] out_buffer, uchar[] in_buffer); 559 | public Error decrypt (uchar[] out_buffer, uchar[] in_buffer); 560 | 561 | [CCode (cname = "gcry_cipher_setkey")] 562 | public Error set_key (uchar[] key_data); 563 | [CCode (cname = "gcry_cipher_setiv")] 564 | public Error set_iv (uchar[] iv_data); 565 | [CCode (cname = "gcry_cipher_setctr")] 566 | public Error set_counter_vector (uchar[] counter_vector); 567 | public Error reset (); 568 | public Error sync (); 569 | } 570 | } 571 | 572 | [Compact, CCode (cname = "struct gcry_md_handle", cprefix = "gcry_md_", free_function = "gcry_md_close")] 573 | public class Hash { 574 | [CCode (cname = "enum gcry_md_algos", cprefix = "GCRY_MD_")] 575 | public enum Algorithm { 576 | NONE, 577 | SHA1, 578 | RMD160, 579 | MD5, 580 | MD4, 581 | MD2, 582 | TIGER, 583 | TIGER1, 584 | TIGER2, 585 | HAVAL, 586 | SHA224, 587 | SHA256, 588 | SHA384, 589 | SHA512, 590 | SHA3_224, 591 | SHA3_256, 592 | SHA3_384, 593 | SHA3_512, 594 | SHAKE128, 595 | SHAKE256, 596 | CRC32, 597 | CRC32_RFC1510, 598 | CRC24_RFC2440, 599 | WHIRLPOOL, 600 | GOSTR3411_94, 601 | STRIBOG256, 602 | STRIBOG512; 603 | 604 | [CCode (cname = "gcry_md_get_algo_dlen")] 605 | public size_t get_digest_length (); 606 | [CCode (cname = "gcry_md_algo_info")] 607 | public Error info (ControlCommand what, ref uchar[] buffer); 608 | [CCode (cname = "gcry_md_algo_name")] 609 | public unowned string to_string (); 610 | [CCode (cname = "gcry_md_map_name")] 611 | public static Algorithm from_string (string name); 612 | [CCode (cname = "gcry_md_test_algo")] 613 | public Error is_available (); 614 | [CCode (cname = "gcry_md_get_asnoid")] 615 | public Error get_oid (uchar[] buffer); 616 | } 617 | 618 | [CCode (cname = "enum gcry_md_flags", cprefix = "GCRY_MD_FLAG_")] 619 | public enum Flag { 620 | SECURE, 621 | HMAC, 622 | BUGEMU1 623 | } 624 | 625 | public static Error open (out Hash hash, Algorithm algo, Flag flag); 626 | public void close (); 627 | public Error enable (Algorithm algo); 628 | [CCode (instance_pos = -1)] 629 | public Error copy (out Hash dst); 630 | public void reset (); 631 | [CCode (cname = "enum gcry_md_ctl")] 632 | public Error control (ControlCommand cmd, uchar[] buffer); 633 | public void write (uchar[] buffer); 634 | [CCode (array_length = false)] 635 | public unowned uchar[] read (Algorithm algo); 636 | public static void hash_buffer (Algorithm algo, [CCode (array_length = false)] uchar[] digest, uchar[] buffer); 637 | public Algorithm get_algo (); 638 | public bool is_enabled (Algorithm algo); 639 | public bool is_secure (); 640 | public Error info (ControlCommand what, uchar[] buffer); 641 | [CCode (cname = "gcry_md_setkey")] 642 | public Error set_key (uchar[] key_data); 643 | public void putc (char c); 644 | public void final (); 645 | public static Error list (ref Algorithm[] algos); 646 | } 647 | 648 | namespace Random { 649 | [CCode (cname = "gcry_random_level_t")] 650 | public enum Level { 651 | [CCode (cname = "GCRY_WEAK_RANDOM")] 652 | WEAK, 653 | [CCode (cname = "GCRY_STRONG_RANDOM")] 654 | STRONG, 655 | [CCode (cname = "GCRY_VERY_STRONG_RANDOM")] 656 | VERY_STRONG 657 | } 658 | 659 | [CCode (cname = "gcry_randomize")] 660 | public static void randomize (uchar[] buffer, Level level = Level.VERY_STRONG); 661 | [CCode (cname = "gcry_fast_random_poll")] 662 | public static Error poll (); 663 | [CCode (cname = "gcry_random_bytes", array_length = false)] 664 | public static uchar[] random_bytes (size_t nbytes, Level level = Level.VERY_STRONG); 665 | [CCode (cname = "gcry_random_bytes_secure")] 666 | public static uchar[] random_bytes_secure (size_t nbytes, Level level = Level.VERY_STRONG); 667 | [CCode (cname = "gcry_create_nonce")] 668 | public static void nonce (uchar[] buffer); 669 | } 670 | 671 | [Compact, CCode (cname = "struct gcry_mpi", cprefix = "gcry_mpi_", free_function = "gcry_mpi_release")] 672 | public class MPI { 673 | [CCode (cname = "enum gcry_mpi_format", cprefix = "GCRYMPI_FMT_")] 674 | public enum Format { 675 | NONE, 676 | STD, 677 | PGP, 678 | SSH, 679 | HEX, 680 | USG 681 | } 682 | 683 | [CCode (cname = "enum gcry_mpi_flag", cprefix = "GCRYMPI_FLAG_")] 684 | public enum Flag { 685 | SECURE, 686 | OPAQUE 687 | } 688 | 689 | public MPI (uint nbits); 690 | [CCode (cname = "gcry_mpi_snew")] 691 | public MPI.secure (uint nbits); 692 | public MPI copy (); 693 | public void set (MPI u); 694 | public void set_ui (ulong u); 695 | public void swap (); 696 | public int cmp (MPI v); 697 | public int cmp_ui (ulong v); 698 | 699 | public static Error scan (out MPI ret, MPI.Format format, [CCode (array_length = false)] uchar[] buffer, size_t buflen, out size_t nscanned); 700 | [CCode (instance_pos = -1)] 701 | public Error print (MPI.Format format, [CCode (array_length = false)] uchar[] buffer, size_t buflen, out size_t nwritter); 702 | [CCode (instance_pos = -1)] 703 | public Error aprint (MPI.Format format, out uchar[] buffer); 704 | 705 | public void add (MPI u, MPI v); 706 | public void add_ui (MPI u, ulong v); 707 | public void addm (MPI u, MPI v, MPI m); 708 | public void sub (MPI u, MPI v); 709 | public void sub_ui (MPI u, MPI v); 710 | public void subm (MPI u, MPI v, MPI m); 711 | public void mul (MPI u, MPI v); 712 | public void mul_ui (MPI u, ulong v); 713 | public void mulm (MPI u, MPI v, MPI m); 714 | public void mul_2exp (MPI u, ulong cnt); 715 | public void div (MPI q, MPI r, MPI dividend, MPI divisor, int round); 716 | public void mod (MPI dividend, MPI divisor); 717 | public void powm (MPI b, MPI e, MPI m); 718 | public int gcd (MPI a, MPI b); 719 | public int invm (MPI a, MPI m); 720 | 721 | public uint get_nbits (); 722 | public int test_bit (uint n); 723 | public void set_bit (uint n); 724 | public void clear_bit (uint n); 725 | public void set_highbit (uint n); 726 | public void clear_highbit (uint n); 727 | public void rshift (MPI a, uint n); 728 | public void lshift (MPI a, uint n); 729 | 730 | public void set_flag (MPI.Flag flag); 731 | public void clear_flag (MPI.Flag flag); 732 | public int get_flag (MPI.Flag flag); 733 | } 734 | 735 | [Compact, CCode (cname = "struct gcry_sexp", free_function = "gcry_sexp_release")] 736 | public class SExp { 737 | [CCode (cprefix = "GCRYSEXP_FMT_")] 738 | public enum Format { 739 | DEFAULT, 740 | CANON, 741 | BASE64, 742 | ADVANCED 743 | } 744 | 745 | public static Error @new (out SExp retsexp, void * buffer, size_t length, int autodetect); 746 | public static Error create (out SExp retsexp, void * buffer, size_t length, int autodetect, GLib.DestroyNotify free_function); 747 | public static Error sscan (out SExp retsexp, out size_t erroff, char[] buffer); 748 | public static Error build (out SExp retsexp, out size_t erroff, string format, ...); 749 | public size_t sprint (Format mode, char[] buffer); 750 | public static size_t canon_len (uchar[] buffer, out size_t erroff, out int errcode); 751 | public SExp find_token (string token, size_t token_length = 0); 752 | public int length (); 753 | public SExp? nth (int number); 754 | public SExp? car (); 755 | public SExp? cdr (); 756 | public unowned char[] nth_data (int number); 757 | public gcry_string nth_string (int number); 758 | public MPI nth_mpi (int number, MPI.Format mpifmt); 759 | } 760 | 761 | [CCode (cname = "char", free_function = "gcry_free")] 762 | public class gcry_string : string { } 763 | 764 | [CCode (lower_case_cprefix = "gcry_pk_")] 765 | namespace PublicKey { 766 | [CCode (cname = "enum gcry_pk_algos")] 767 | public enum Algorithm { 768 | RSA, 769 | ELG_E, 770 | DSA, 771 | ELG, 772 | ECDSA; 773 | 774 | [CCode (cname = "gcry_pk_algo_name")] 775 | public unowned string to_string (); 776 | [CCode (cname = "gcry_pk_map_name")] 777 | public static Algorithm map_name (string name); 778 | } 779 | 780 | public static Error encrypt (out SExp ciphertext, SExp data, SExp pkey); 781 | public static Error decrypt (out SExp plaintext, SExp data, SExp skey); 782 | public static Error sign (out SExp signature, SExp data, SExp skey); 783 | public static Error verify (SExp signature, SExp data, SExp pkey); 784 | public static Error testkey (SExp key); 785 | public static Error genkey (out SExp r_key, SExp s_params); 786 | public static uint get_nbits (SExp key); 787 | } 788 | 789 | [CCode (lower_case_cprefix = "gcry_kdf_")] 790 | namespace KeyDerivation { 791 | [CCode (cname = "gcry_kdf_algos", cprefix = "GCRY_KDF_", has_type_id = false)] 792 | public enum Algorithm { 793 | NONE, 794 | SIMPLE_S2K, 795 | SALTED_S2K, 796 | ITERSALTED_S2K, 797 | PBKDF1, 798 | PBKDF2, 799 | SCRYPT 800 | } 801 | 802 | public GCrypt.Error derive ([CCode (type = "const void*", array_length_type = "size_t")] uint8[] passphrasse, GCrypt.KeyDerivation.Algorithm algo, GCrypt.Hash.Algorithm subalgo, [CCode (type = "const void*", array_length_type = "size_t")] uint8[] salt, ulong iterations, [CCode (type = "void*", array_length_type = "size_t", array_length_pos = 5.5)] uint8[] keybuffer); 803 | } 804 | } 805 | -------------------------------------------------------------------------------- /src/window.vala: -------------------------------------------------------------------------------- 1 | 2 | using Gtk; 3 | 4 | namespace Forgetpass { 5 | public class MainWindow : Adw.ApplicationWindow { 6 | private PasswordEntry generated_pass; 7 | private Adw.PasswordEntryRow entry_key; 8 | private Adw.EntryRow entry_site; 9 | private Adw.ToastOverlay overlay; 10 | private Adw.Toast name_toast; 11 | private Adw.Toast keyword_toast; 12 | 13 | public MainWindow (Adw.Application app) { 14 | Object (application: app, title: "Forgetpass", default_height: 250, default_width: 350); 15 | } 16 | 17 | construct { 18 | var clear_site = new Button(); 19 | clear_site.set_icon_name("edit-clear-symbolic"); 20 | clear_site.add_css_class("destructive-action"); 21 | clear_site.add_css_class("circular"); 22 | clear_site.valign = Align.CENTER; 23 | clear_site.visible = false; 24 | 25 | entry_site = new Adw.EntryRow(); 26 | entry_site.add_suffix(clear_site); 27 | entry_site.set_title(_("Site")); 28 | entry_site.set_tooltip_text(_("Use only the domain name without prefixes, such as http or www, and endings, such as .com, etc.")); 29 | 30 | var clear_key = new Button(); 31 | clear_key.set_icon_name("edit-clear-symbolic"); 32 | clear_key.add_css_class("destructive-action"); 33 | clear_key.add_css_class("circular"); 34 | clear_key.valign = Align.CENTER; 35 | clear_key.visible = false; 36 | 37 | entry_key = new Adw.PasswordEntryRow(); 38 | entry_key.add_suffix(clear_key); 39 | entry_key.set_title(_("Keyword")); 40 | entry_key.set_tooltip_text(_("Be sure to remember the keyword! If you forget it, you won't be able to recover your password!")); 41 | 42 | entry_site.changed.connect((event) => { 43 | on_entry_change(entry_site, clear_site); 44 | }); 45 | clear_site.clicked.connect((event) => { 46 | on_clear_entry(entry_site); 47 | }); 48 | entry_key.changed.connect((event) => { 49 | on_entry_change(entry_key, clear_key); 50 | }); 51 | clear_key.clicked.connect((event) => { 52 | on_clear_entry(entry_key); 53 | }); 54 | 55 | var list = new ListBox(); 56 | list.add_css_class("boxed-list"); 57 | list.append(entry_site); 58 | list.append(entry_key); 59 | 60 | var generate_button = new Button.with_label(_("GENERATE")); 61 | generate_button.add_css_class("suggested-action"); 62 | generate_button.add_css_class("pill"); 63 | generated_pass = new PasswordEntry() { 64 | hexpand = true, 65 | show_peek_icon = true, 66 | editable = false 67 | }; 68 | var copy_button = new Button(); 69 | copy_button.set_icon_name("edit-copy-symbolic"); 70 | copy_button.set_tooltip_text(_("Copy password")); 71 | 72 | generate_button.clicked.connect(on_generate); 73 | copy_button.clicked.connect(on_copy); 74 | 75 | var hbox_pass = new Box (Orientation.HORIZONTAL, 5); 76 | hbox_pass.append (generated_pass); 77 | hbox_pass.append (copy_button); 78 | 79 | var box = new Box (Orientation.VERTICAL, 10); 80 | box.vexpand = true; 81 | box.append(list); 82 | box.append(generate_button); 83 | box.append(hbox_pass); 84 | 85 | var clamp = new Adw.Clamp (); 86 | clamp.valign = Gtk.Align.CENTER; 87 | clamp.tightening_threshold = 100; 88 | clamp.margin_top = 10; 89 | clamp.margin_bottom = 20; 90 | clamp.margin_start = 20; 91 | clamp.margin_end = 20; 92 | clamp.set_child (box); 93 | 94 | var headerbar = new Adw.HeaderBar(); 95 | headerbar.add_css_class("flat"); 96 | 97 | overlay = new Adw.ToastOverlay(); 98 | overlay.set_child(clamp); 99 | 100 | var main_box = new Box (Orientation.VERTICAL, 0); 101 | main_box.append(headerbar); 102 | main_box.append(overlay); 103 | set_content(main_box); 104 | 105 | name_toast = new Adw.Toast(_("Enter the name of the site")); 106 | name_toast.set_timeout(3); 107 | keyword_toast = new Adw.Toast(_("Enter a keyword")); 108 | keyword_toast.set_timeout(3); 109 | } 110 | private void on_clear_entry(Adw.EntryRow entry){ 111 | entry.set_text(""); 112 | entry.grab_focus(); 113 | } 114 | private void on_entry_change(Adw.EntryRow entry, Gtk.Button clear){ 115 | if (!is_empty(entry.get_text())) { 116 | clear.set_visible(true); 117 | } else { 118 | clear.set_visible(false); 119 | } 120 | } 121 | private void on_generate(){ 122 | if(is_empty(entry_site.text)){ 123 | overlay.add_toast(name_toast); 124 | entry_site.grab_focus(); 125 | return; 126 | } 127 | if(is_empty(entry_key.text)){ 128 | overlay.add_toast(keyword_toast); 129 | entry_key.grab_focus(); 130 | return; 131 | } 132 | try { 133 | generated_pass.text = Crypto.derive_password(entry_key.text.strip(), entry_site.text.down().strip()); 134 | } catch (CryptoError error) { 135 | alert(_("ERROR!!!\nFailed to generate password"),""); 136 | } 137 | } 138 | private void on_copy(){ 139 | var clipboard = Gdk.Display.get_default().get_clipboard(); 140 | clipboard.set_text(generated_pass.get_text()); 141 | } 142 | private bool is_empty(string str){ 143 | return str.strip().length == 0; 144 | } 145 | 146 | private void alert (string heading, string body){ 147 | var dialog_alert = new Adw.MessageDialog(this, heading, body); 148 | if (body != "") { 149 | dialog_alert.set_body(body); 150 | } 151 | dialog_alert.add_response("ok", _("_OK")); 152 | dialog_alert.set_response_appearance("ok", SUGGESTED); 153 | dialog_alert.response.connect((_) => { dialog_alert.close(); }); 154 | dialog_alert.show(); 155 | } 156 | } 157 | } 158 | 159 | 160 | --------------------------------------------------------------------------------