{"id":37027228,"url":"https://github.com/gherynos/secrete","last_synced_at":"2026-01-14T03:13:32.720Z","repository":{"id":52219934,"uuid":"43244691","full_name":"gherynos/secrete","owner":"gherynos","description":"ECIES implementation with Curve25519.","archived":false,"fork":false,"pushed_at":"2025-06-15T16:48:03.000Z","size":132,"stargazers_count":16,"open_issues_count":0,"forks_count":9,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-06-15T17:29:43.831Z","etag":null,"topics":["curve25519","ecies","java"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gherynos.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2015-09-27T11:51:23.000Z","updated_at":"2025-06-15T16:48:06.000Z","dependencies_parsed_at":"2023-02-16T17:16:08.567Z","dependency_job_id":"2b7fda3b-423c-478c-a48d-5578a5d529c9","html_url":"https://github.com/gherynos/secrete","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/gherynos/secrete","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gherynos%2Fsecrete","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gherynos%2Fsecrete/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gherynos%2Fsecrete/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gherynos%2Fsecrete/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gherynos","download_url":"https://codeload.github.com/gherynos/secrete/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gherynos%2Fsecrete/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408816,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["curve25519","ecies","java"],"created_at":"2026-01-14T03:13:32.066Z","updated_at":"2026-01-14T03:13:32.713Z","avatar_url":"https://github.com/gherynos.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Secrete\n\nSecrete is a simple ECIES implementation that uses [Curve25519](http://cr.yp.to/ecdh.html).\n\nThe [Elliptic Curve Integrated Encryption Scheme](https://en.wikipedia.org/wiki/Integrated_Encryption_Scheme) has been implemented with the following specifications:\n\n| Item                        | Specification                       |\n|-----------------------------|-------------------------------------|\n| Elliptic Curve              | Curve25519                          |\n| Key Derivation Function     | KDF2                                |\n| Message Authentication Code | HMAC with SHA512                    |\n| Symmetric Encryption Scheme | AES-256 CBC mode with PKCS7 Padding |\n\nusing source code from existing repositories, including:\n\n* \u003chttps://github.com/trevorbernard/curve25519-java\u003e\n* \u003chttps://github.com/bcgit/bc-java.git\u003e\n\nMany thanks to [Trevor Bernard](https://github.com/trevorbernard) and the guys of [The Legion of the Bouncy Castle](http://www.bouncycastle.org/java.html).\n\n## Binary version\n\nThe binary distribution can be downloaded from the [releases](https://github.com/gherynos/secrete/releases) page.\n\n## Usage\n\n### Generate the key pair\n\n```shell\njava -jar secrete.jar genKeys\n```\n\nThis will generate the two files `public.key` and `private.key` under the `.secrete` folder in the user's home.\nA password will be required to protect the private key.\n\nThe private key is stored using PBKDF2 with SHA-512 and AES-256 CBC mode with PKCS7 Padding.\n\n#### Change the private key password\n\nTo change the password of the `private.key` under the `.secrete` folder, use:\n\n```shell\njava -jar secrete.jar changePwd\n```\n\n### Export the public key\n\n```shell\njava -jar secrete.jar -o \u003ckey_file\u003e exportKey\n```\n\n### Encrypt a text message\n\n```shell\njava -jar secrete.jar -k \u003crecipient_key_file\u003e encrypt\n```\n\nInsert the message ending with a \".\"; the encrypted message will be displayed encoded in Base64.\n\nIt is also possible to output the encrypted message to a binary file by specifying the \"-o\" option:\n\n```shell\njava -jar secrete.jar -k \u003crecipient_key_file\u003e -o \u003cencrypted_file\u003e encrypt\n```\n\n### Decrypt a text message\n\n```shell\njava -jar secrete.jar decrypt\n```\n\nInsert the Base64 encrypted message, and the password to unlock the private key.\n\nIt is also possible to load the encrypted message from the binary file by specifying the \"-i\" option:\n\n```shell\njava -jar secrete.jar -i \u003cencrypted_file\u003e decrypt\n```\n\n### Encrypt a file\n\n```shell\njava -jar secrete.jar -k \u003crecipient_key_file\u003e -i \u003cfile_to_encrypt\u003e -o \u003cencrypted_file\u003e encrypt\n```\n\n### Decrypt a file\n\n```shell\njava -jar secrete.jar -i \u003cencrypted_file\u003e -o \u003cdecrypted_file\u003e decrypt\n```\n\nInsert the password to unlock the private key.\n\n## Library usage\n\nSecrete can be used as a library, via the [Maven Central Repository](https://mvnrepository.com/artifact/net.nharyes/secrete):\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003enet.nharyes\u003c/groupId\u003e\n    \u003cartifactId\u003esecrete\u003c/artifactId\u003e\n\u003c/dependency\u003e\n```\n\nThe main classes to use are:\n\n* `net.nharyes.secrete.curve.Curve25519KeyPairGenerator`\n* `net.nharyes.secrete.ecies.ECIESHelper`\n\nCheck the [ECIESHelper unit tests](https://github.com/gherynos/secrete/blob/main/src/test/java/net/nharyes/secrete/ecies/TestECIESHelper.java#L34) for some usage examples.\n\n## Author\n\n\u003e GitHub [@gherynos](https://github.com/gherynos)\n\n## License\n\nSecrete is licensed under the [Apache License 2.0](https://apache.org/licenses/LICENSE-2.0) since version `1.0.2`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgherynos%2Fsecrete","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgherynos%2Fsecrete","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgherynos%2Fsecrete/lists"}