{"id":21535071,"url":"https://github.com/cns-dgsw/reflectivecipher","last_synced_at":"2025-10-08T02:49:16.439Z","repository":{"id":234095960,"uuid":"612665886","full_name":"CNS-DGSW/ReflectiveCipher","owner":"CNS-DGSW","description":"A Reflection Cryption Library fork with additional features and fixes","archived":false,"fork":false,"pushed_at":"2023-03-14T06:02:49.000Z","size":35,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-03-24T03:24:08.690Z","etag":null,"topics":["aop-aspectj","decryptor","encryptor","java","spring-boot-starter"],"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/CNS-DGSW.png","metadata":{"files":{"readme":"README.MD","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2023-03-11T16:13:38.000Z","updated_at":"2023-04-18T05:03:54.000Z","dependencies_parsed_at":"2024-04-18T06:27:31.709Z","dependency_job_id":null,"html_url":"https://github.com/CNS-DGSW/ReflectiveCipher","commit_stats":null,"previous_names":["cns-dgsw/reflectivecipher"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CNS-DGSW%2FReflectiveCipher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CNS-DGSW%2FReflectiveCipher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CNS-DGSW%2FReflectiveCipher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CNS-DGSW%2FReflectiveCipher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CNS-DGSW","download_url":"https://codeload.github.com/CNS-DGSW/ReflectiveCipher/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248142403,"owners_count":21054636,"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":["aop-aspectj","decryptor","encryptor","java","spring-boot-starter"],"created_at":"2024-11-24T03:13:58.427Z","updated_at":"2025-10-08T02:49:11.381Z","avatar_url":"https://github.com/CNS-DGSW.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ReflectiveCipher\n\u003e ReflectiveCipher is a Reflection Encrypt Library forked base on \n\u003e [Reflcypt](https://github.com/CNS-DGSW/Reflcrypt).\n The main focus of this project is adding new features and patches\n\u003e while also keeping up to date with the original project \u003cbr\u003e\n\u003e library's default key-algorithm is `PBKDF2WithHmacSHA256`\n\n## How To Use\n### Simple implementation \u003cbr\u003e\nIn your security field, add the code below \n```java\npublic class Secret {\n    \n    @SecurityField      // encrypt and decrypt this field.\n    private String field;\n    \n    @EncryptParams      // encrypt 'topSecret' parameter\n    public void vulnerableMethod(@SecurityParam String topSecret) {\n        // ...\n    }\n    \n    @DecryptReturns     // decrypt and return 'NonSecret' object\n    public NonSecret info() {\n        // ...\n    }\n    \n}\n```\n\n## Properties\n### [for field] `@SecurityField`\n\u003e Assign field to encrypt or decrypt \n* support types:\n  * String\n  * byte[] or Byte[]\n\n### [for Param] `@SecurityParam`\n\u003e Assign parameter to encrypt or decrypt\n* support types:\n  * String\n  * byte[] or Byte[]\n\n### [for Method] `@EncryptParams`\n\u003e Encrypt argument, encrypt all field in argument\n* useful in JPA Repository.\n  * ex) `.save()`\n    * when entity save, will encrypt\n\n### [for Method] `@DecryptParams`\n\u003e Decrypt argument, decrypt all field in argument\n\n### [for Method] `@EncryptReturns`\n\u003e Encrypt return object\n\n### [for Method] `@DecryptReturns`\n\u003e Decrypt return object\n* useful in JPA Repository\n  * when method call from JPA Repository, decrypt entity and return\n\n## Springboot Application properties \u003cbr\u003e\nSpringboot properties prefix is `cipher`\n### `algorithm`\n\u003e Set cipher-algorithm such as **'AES/CBC/PKCS5Padding'**\n* Must be choose in [Java Security Standard Algorithm Name](https://docs.oracle.com/javase/9/docs/specs/security/standard-names.html#security-algorithm-implementation-requirements)\n  * The class is Cipher\n\n### `key`\n\u003e Set secret-key\n\n### `hash`\n\u003e Set hash value\n\n### `iv`\n\u003e Set Initialization Vector value\n* Length is must be 16 bytes long \n\n## Collaboration\nIt adheres to Java's standard conventions, it's flexible enough for many variations, \nand I'm sure you can improve and add more features to the API in an easy-to-use way, \nso feel free to post ideas, issues, and pull requests.\n\n## Licence\nReflectiveCipher is available under the MIT License.\n\n\n## 🧑‍💻 Thanks to the original developer\n* **[이승민 (Eric Lee)](https://github.com/ericlee05)** - CNS 3기 백엔드팀\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcns-dgsw%2Freflectivecipher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcns-dgsw%2Freflectivecipher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcns-dgsw%2Freflectivecipher/lists"}