{"id":19486492,"url":"https://github.com/phxql/easy-krypto","last_synced_at":"2025-08-21T03:13:38.137Z","repository":{"id":57730760,"uuid":"122740767","full_name":"phxql/easy-krypto","owner":"phxql","description":"This Kotlin library aims to provide a simple way to encrypt and decrypt stuff in a secure manner.","archived":false,"fork":false,"pushed_at":"2018-02-25T12:17:15.000Z","size":138,"stargazers_count":2,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-03T04:41:32.682Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/phxql.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-24T13:00:06.000Z","updated_at":"2019-01-22T12:58:42.000Z","dependencies_parsed_at":"2022-09-26T22:01:36.551Z","dependency_job_id":null,"html_url":"https://github.com/phxql/easy-krypto","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/phxql/easy-krypto","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phxql%2Feasy-krypto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phxql%2Feasy-krypto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phxql%2Feasy-krypto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phxql%2Feasy-krypto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phxql","download_url":"https://codeload.github.com/phxql/easy-krypto/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phxql%2Feasy-krypto/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271420152,"owners_count":24756490,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-21T02:00:08.990Z","response_time":74,"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":[],"created_at":"2024-11-10T20:37:59.543Z","updated_at":"2025-08-21T03:13:38.116Z","avatar_url":"https://github.com/phxql.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Easy Krypto [![Build Status](https://travis-ci.org/phxql/easy-krypto.svg?branch=master)](https://travis-ci.org/phxql/easy-krypto) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/de.mkammerer.easy-krypto/easy-krypto/badge.svg)](https://maven-badges.herokuapp.com/maven-central/de.mkammerer.easy-krypto/easy-krypto)\n\n\nThis Kotlin library aims to provide a simple way to encrypt and decrypt stuff in a secure manner.\n\nUsing Java, Scala, Groovy, etc.? No problem, this library can also be used with any JVM language. See [Java interop](doc/java-interop.md) for details.\n\n## Maven\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ede.mkammerer.easy-krypto\u003c/groupId\u003e\n    \u003cartifactId\u003eeasy-krypto\u003c/artifactId\u003e\n    \u003cversion\u003e1.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n## Usage\n\n```kotlin\n// We want to use symmetric crypto (same key for encrypting and decrypting)\nval symmetric = EasyKrypto.symmetric()\n\n// Generate a random key\nval key = symmetric.keys.createRandom()\n\n// Save that key to a file\nval keyFile = Paths.get(\"/path/to/key\")\nkey.saveToFile(keyFile)\n\n// We can also load the key from the file again\nval loadedKey = symmetric.keys.loadFromFile(keyFile)\n\n// We create a plaintext from a string we want to encrypt\nval plaintext = symmetric.plaintexts.createFromString(\"Hello EasyKrypto\")\n\n// And then we encrypt that plaintext with the key to the ciphertext\nval ciphertext = symmetric.encrypt(plaintext, key)\n\n// We can now store the ciphertext to a file and no one without the key can read it\nval ciphertextFile = Paths.get(\"/path/to/ciphertext\")\nciphertext.saveToFile(ciphertextFile)\n\n// We can load the ciphertext from the file again\nval loadedCiphertext = symmetric.ciphertexts.loadFromFile(ciphertextFile)\n\n// And use the key to decrypt the ciphertext to the plaintext\nval decrypted = symmetric.decrypt(loadedCiphertext, loadedKey)\n\n// We can now print the decrypted string. This prints \"Hello EasyKrypto\"\nprintln(decrypted.asString())\n```\n\nFor more examples, [see the How-To guide](doc/howto.md).\n\n## License\n\nLicensed under [LGPLv3](https://www.gnu.org/licenses/lgpl-3.0.en.html).\n\n## Developer guide\n\nSee [the developer guide](doc/development.md).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphxql%2Feasy-krypto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphxql%2Feasy-krypto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphxql%2Feasy-krypto/lists"}