{"id":19340377,"url":"https://github.com/tim9liu9/java_security","last_synced_at":"2025-04-23T02:31:24.975Z","repository":{"id":28672672,"uuid":"32192374","full_name":"Tim9Liu9/java_security","owner":"Tim9Liu9","description":"JAVA的不同加密方式及不同的实现方式集合。","archived":false,"fork":false,"pushed_at":"2015-11-29T11:58:59.000Z","size":2406,"stargazers_count":170,"open_issues_count":2,"forks_count":100,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-04-02T06:51:14.746Z","etag":null,"topics":[],"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/Tim9Liu9.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}},"created_at":"2015-03-14T02:31:17.000Z","updated_at":"2025-03-24T11:50:01.000Z","dependencies_parsed_at":"2022-08-26T21:10:27.993Z","dependency_job_id":null,"html_url":"https://github.com/Tim9Liu9/java_security","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tim9Liu9%2Fjava_security","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tim9Liu9%2Fjava_security/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tim9Liu9%2Fjava_security/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tim9Liu9%2Fjava_security/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Tim9Liu9","download_url":"https://codeload.github.com/Tim9Liu9/java_security/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250357628,"owners_count":21417317,"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":[],"created_at":"2024-11-10T03:26:15.002Z","updated_at":"2025-04-23T02:31:24.650Z","avatar_url":"https://github.com/Tim9Liu9.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# java_security\n\n### JAVA安全实现三种方式：\n    1.JDK 2.Commons Codec 3.Bouncy Castle\n\n====\n#### 一。非对称加密算法：com.timliu.security.asymmetric_encryption\n    1.DH 2.RSA 3.ElGamal\n\n####  二。Base64：com.timliu.security.base64\n    1.JDK实现 2.common codes实现 3.bouncy castle实现\n\n####  三。消息摘要算法：com.timliu.security.message_digest\n    1.MD5 2.SHA 3.MAC\n\n####  四。数字签名:JDK实现  com.timliu.security.signature\n    1.RSA 2.DSA 3.ECDSA\n\n####  五。对称加密算法：com.timliu.security.symmetric_encryption\n    1.3DES 2.AES 3.PBE\n    \n \n    \n====\n####   非对称加密算法中“ElGamal” ，的异常问题：\n    对于：“Illegal key size or default parameters”异常，是因为美国的出口限制，Sun通过权限文件（local_policy.jar、US_export_policy.jar）做了相应限制。因此存在一些问题.\nJava 6 无政策限制文件：[java官方下载](http://www.oracle.com/technetwork/java/javase/downloads/jce-6-download-429243.html) 本 jce_policy-6.zip 包已经下载到本项目的ext目录下。\n\nJava 7 无政策限制文件：[java官方下载](http://www.oracle.com/technetwork/java/javase/downloads/jce-7-download-432124.html) 本 UnlimitedJCEPolicyJDK7.zip 包已经下载到本项目的ext目录下。\n    \n    我的macbook 10.10.2安装的是java7：\n    到：/Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home/jre/lib/security 目录下，对应覆盖local_policy.jar和US_export_policy.jar两个文件。\n    \n    windows的系统可能需要如下操作：\n    切换到%JDK_Home%\\jre\\lib\\security目录下，对应覆盖local_policy.jar和US_export_policy.jar两个文件。同时，你可能有必要在%JRE_Home%\\lib\\security目录下，也需要对应覆盖这两个文件。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftim9liu9%2Fjava_security","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftim9liu9%2Fjava_security","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftim9liu9%2Fjava_security/lists"}