{"id":18998997,"url":"https://github.com/felipebonezi/cipherizy-lib","last_synced_at":"2025-06-10T16:11:07.869Z","repository":{"id":39564153,"uuid":"253025753","full_name":"felipebonezi/cipherizy-lib","owner":"felipebonezi","description":"Encrypt / Decrypt project library to help you at your Java or Kotlin projects.","archived":false,"fork":false,"pushed_at":"2023-05-20T21:42:00.000Z","size":113,"stargazers_count":9,"open_issues_count":1,"forks_count":1,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-04-22T14:56:52.721Z","etag":null,"topics":["aes","cipher-lib","cryptography","decrypt","encription","encryption","java","kotlin","scala"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/felipebonezi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","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},"funding":{"github":["felipebonezi"],"open_collective":"felipebonezi"}},"created_at":"2020-04-04T15:00:45.000Z","updated_at":"2024-09-10T21:12:48.000Z","dependencies_parsed_at":"2024-11-08T18:02:49.231Z","dependency_job_id":null,"html_url":"https://github.com/felipebonezi/cipherizy-lib","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felipebonezi%2Fcipherizy-lib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felipebonezi%2Fcipherizy-lib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felipebonezi%2Fcipherizy-lib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felipebonezi%2Fcipherizy-lib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/felipebonezi","download_url":"https://codeload.github.com/felipebonezi/cipherizy-lib/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felipebonezi%2Fcipherizy-lib/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259106728,"owners_count":22805941,"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","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":["aes","cipher-lib","cryptography","decrypt","encription","encryption","java","kotlin","scala"],"created_at":"2024-11-08T17:49:03.012Z","updated_at":"2025-06-10T16:11:07.847Z","avatar_url":"https://github.com/felipebonezi.png","language":"Java","funding_links":["https://github.com/sponsors/felipebonezi","https://opencollective.com/felipebonezi"],"categories":[],"sub_categories":[],"readme":"# cipherizy-lib\n\n[![CI](https://github.com/felipebonezi/cipherizy-lib/actions/workflows/continouos-integration.yml/badge.svg)](https://github.com/felipebonezi/cipherizy-lib/actions/workflows/continouos-integration.yml)\n[![Renovate](https://img.shields.io/badge/renovate-enabled-brightgreen.svg)](https://renovatebot.com)\n[![Version](https://img.shields.io/github/v/release/felipebonezi/cipherizy-lib?logo=java)](https://github.com/felipebonezi/cipherizy-lib/releases)\n[![CLA assistant](https://cla-assistant.io/readme/badge/felipebonezi/cipherizy-lib)](https://cla-assistant.io/felipebonezi/cipherizy-lib)\n[![Licence](https://img.shields.io/github/license/felipebonezi/cipherizy-lib?color=blue)](https://github.com/felipebonezi/cipherizy-lib/blob/main/LICENSE)\n\nCipher lib for Java, Kotlin or Scala projects.\n\nThis lib was developed with the main goal of make sensitive data encryption/decryption easy. To use, you need only to import it into your project using maven, gradle or sbt.\n\n## Getting Started\n\nImport into your project.\n\n### Maven\n\n```xml\n\u003cdependency\u003e\n \u003cgroupId\u003eio.github.felipebonezi\u003c/groupId\u003e\n \u003cartifactId\u003ecipherizy-lib\u003c/artifactId\u003e\n \u003cversion\u003eX.Y.Z\u003c/version\u003e\n \u003ctype\u003epom\u003c/type\u003e\n\u003c/dependency\u003e\n```\n\n### Gradle\n\n```gradle\nimplementation 'io.github.felipebonezi:cipherizy-lib:X.Y.Z'\n```\n\n### Sbt\n\n```sbt\n  libraryDependencies ++= \"io.github.felipebonezi\" % \"cipherizy-lib\" % \"X.Y.Z\"\n```\n\n## First Cipher\n\nIt is too easy to encrypt and decrypt data using this lib.\n\nThere is a factory class - i.e. `CipherFactory` - that creates the encription classes who will be responsible to generade the algorythns.\n\nThere is a cipher interface - i.e. `ICipher`- that you will use to encript your data in different algorithms (e.g. AES).\n\n### Encrypt\n\n```java\nCipherFactory factory = CipherFactory.getIntance();\nICipher cipher = factory.get(CipherFactory.Algorithm.AES);\n\n// To encrypt your data.\ntry {\n  byte[] key  = getKey();  // Generate your own randomic key (must be 32 bytes long).\n  byte[] salt = getSalt(); // Get your encryption salt (must be 16 bytes long).\n  byte[] data = getData(); // Get your data in byte[] format.\n  \n  byte[] encrypted = cipher.encrypt(key, salt, data);\n  System.out.println(new String(encrypted))\n} catch (CipherException e) {\n  // There was an error to encrypt your data.\n  e.printStackTrace();\n}\n```\n\n### Decrypt\n\n```java\nCipherFactory factory = CipherFactory.getIntance();\nICipher cipher = factory.get(CipherFactory.Algorithm.AES);\n\n// To decrypt your data.\ntry {\n  byte[] key  = getKey();  // Get your encryption key (must be 32 bytes long).\n  byte[] salt = getSalt(); // Get yor encryption salt (must be 16 bytes long).\n  byte[] data = getData(); // Get your encrypted data in byte[] format.\n  \n  byte[] decrypted = cipher.decrypt(key, salt, data);\n  System.out.println(new String(decrypted))\n} catch (CipherException e) {\n  // There was an error to decrypt your data.\n  e.printStackTrace();\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffelipebonezi%2Fcipherizy-lib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffelipebonezi%2Fcipherizy-lib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffelipebonezi%2Fcipherizy-lib/lists"}