{"id":22783508,"url":"https://github.com/tap30/hiss-spring-boot-jpa-starter","last_synced_at":"2026-06-30T18:31:03.854Z","repository":{"id":243681877,"uuid":"813125762","full_name":"Tap30/hiss-spring-boot-jpa-starter","owner":"Tap30","description":"Integrates Hiss library with Spring data JPA","archived":false,"fork":false,"pushed_at":"2024-06-16T08:55:41.000Z","size":70,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-06-19T05:32:03.290Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Tap30.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2024-06-10T14:23:07.000Z","updated_at":"2024-06-16T08:55:44.000Z","dependencies_parsed_at":"2024-06-16T09:24:21.034Z","dependency_job_id":null,"html_url":"https://github.com/Tap30/hiss-spring-boot-jpa-starter","commit_stats":null,"previous_names":["tap30/hiss-spring-boot-jpa-starter"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Tap30/hiss-spring-boot-jpa-starter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tap30%2Fhiss-spring-boot-jpa-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tap30%2Fhiss-spring-boot-jpa-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tap30%2Fhiss-spring-boot-jpa-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tap30%2Fhiss-spring-boot-jpa-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Tap30","download_url":"https://codeload.github.com/Tap30/hiss-spring-boot-jpa-starter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tap30%2Fhiss-spring-boot-jpa-starter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34979577,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-30T02:00:05.919Z","response_time":92,"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-12-11T22:08:19.776Z","updated_at":"2026-06-30T18:31:03.822Z","avatar_url":"https://github.com/Tap30.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hiss Spring Boot JPA Starter [![build status](https://github.com/Tap30/hiss-spring-boot-jpa-starter/actions/workflows/build.yml/badge.svg?branch=main)](https://github.com/Tap30/hiss-spring-boot-jpa-starter/actions/workflows/build.yml)\n\nAn small library which uses Spring Boot autoconfiguration capability that integrates Hiss with Spring Boot and Spring Data JPA.\n\nBy integrating Hiss with Spring Boot project we mean registration of:\n- Hiss bean using `HissPropertiesFromEnvProvider`\n- JPA interceptor which automatically encrypts objects before saving to DB and decrypts them after loading.\n\n## Quick Start\n\n### 1. Add Hiss dependency\n\nApache Maven:\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003eio.github.tap30\u003c/groupId\u003e\n    \u003cartifactId\u003ehiss-spring-boot-jpa-starter\u003c/artifactId\u003e\n    \u003cversion\u003e0.9.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\nGradle (Groovy):\n```groovy\nimplementation 'io.github.tap30:hiss-spring-boot-jpa-starter:0.9.0'\n```\n\nGradle (Kotlin):\n```kotlin\nimplementation(\"io.github.tap30:hiss-spring-boot-jpa-starter:0.9.0\")\n```\n\n### 2. Set environment variables\n\n```bash\nHISS_KEYS_A=AAAAAAAAAAAAAAAAAAAAAA\\=\\=\nHISS_KEYS_B=AAAAAAAAAAAAAAAAAAAAAA\\=\\=\n# other keys...\nHISS_DEFAULT_ENCRYPTION_KEY_ID=a\nHISS_DEFAULT_ENCRYPTION_ALGORITHM=aes-128-gcm\nHISS_DEFAULT_HASHING_KEY_ID=b\nHISS_DEFAULT_HASHING_ALGORITHM=hmac-sha256\n```\n\nFor more information about envs see\n[this](https://github.com/Tap30/hiss?tab=readme-ov-file#hisspropertiesfromenvprovider).\n\n### 3. Annotate your class with `@EntityListeners(value = {HissJpaEventListener.class})` and the fields you want to encrypt with `@Encrypted`\n\n```java\nimport io.github.tap30.Encrypted;\n\n@EntityListeners(value = {HissJpaEventListener.class})\npublic class User {\n    @Encrypted\n    private String phoneNumber;\n    private String hashedPhoneNumber;\n\n    // getters and setters\n}\n```\n\nNote: Getters and setters must exist as Hiss use them to get/set values.\n\n## Using custom `HissPropertiesProvider`\n\nBy implementing `HissPropertiesProvider` and annotating it with `@Component`\nthis library will pick your implementation rather than default `HissPropertiesFromEnvProvider`.\n\n## Querying Data\n\nCurrently there is not easy way to support querying encrypted fields.\n\nTo query data, inject Hiss bean (`@Autowired Hiss hiss`)\nand use `Hiss$hash(String)` method to generate hash of content;\nthen pass it to the queries which use hashed fields.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftap30%2Fhiss-spring-boot-jpa-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftap30%2Fhiss-spring-boot-jpa-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftap30%2Fhiss-spring-boot-jpa-starter/lists"}