{"id":20829821,"url":"https://github.com/devliusir/safetypay","last_synced_at":"2025-09-10T05:37:19.955Z","repository":{"id":92796784,"uuid":"128208353","full_name":"DevLiuSir/SafetyPay","owner":"DevLiuSir","description":"SafetyPay is a security payment password demo.","archived":false,"fork":false,"pushed_at":"2018-04-06T13:14:09.000Z","size":949,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-12T08:15:00.753Z","etag":null,"topics":["ios11","pay","safety","swift-4","uitextfield-styles","xcode9"],"latest_commit_sha":null,"homepage":"","language":"Swift","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/DevLiuSir.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,"publiccode":null,"codemeta":null}},"created_at":"2018-04-05T13:13:02.000Z","updated_at":"2022-03-27T12:24:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"687efa46-056b-4847-ae5a-af6336210aea","html_url":"https://github.com/DevLiuSir/SafetyPay","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DevLiuSir/SafetyPay","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevLiuSir%2FSafetyPay","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevLiuSir%2FSafetyPay/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevLiuSir%2FSafetyPay/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevLiuSir%2FSafetyPay/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DevLiuSir","download_url":"https://codeload.github.com/DevLiuSir/SafetyPay/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevLiuSir%2FSafetyPay/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274417409,"owners_count":25281108,"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-09-10T02:00:12.551Z","response_time":83,"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":["ios11","pay","safety","swift-4","uitextfield-styles","xcode9"],"created_at":"2024-11-17T23:22:13.070Z","updated_at":"2025-09-10T05:37:14.940Z","avatar_url":"https://github.com/DevLiuSir.png","language":"Swift","readme":"\u003cp align=\"center\"\u003e \u003cb\u003e SafetyPay is a security payment password demo \u003c/b\u003e\u003c/p\u003e\n\n\n![language](https://img.shields.io/badge/language-swift-orange.svg)\n[![swift  4.0](https://img.shields.io/badge/swift-4.0.3+-blue.svg?style=flat)](https://developer.apple.com/swift/)\n![xcode version](https://img.shields.io/badge/xcode-9+-brightgreen.svg)\n![build](https://img.shields.io/appveyor/ci/gruntjs/grunt.svg)\n![platform](https://img.shields.io/badge/platform-ios-lightgrey.svg)\n![https://github.com/ChinaHackers/SafetyPay/blob/master/LICENSE](https://img.shields.io/github/license/ChinaHackers/SafetyPay.svg)\n![](https://img.shields.io/github/stars/ChinaHackers/SafetyPay.svg?style=social\u0026label=Star)\n[![Twitter Follow](https://img.shields.io/twitter/follow/LiuChuan_.svg?style=social)](https://twitter.com/LiuChuan_)\n\n---\n\n\n### Safety Pay style\n\n- **Using enumerations to define `safetyPayStyle` types**\n\n```swift\n/// 安全支付样式\n///\n/// - ciphertext: 密文\n/// - Plaintext: 明文\nenum safetyPayStyle {\n    /// 密文\n    case ciphertext\n    /// 明文\n    case plaintext\n}\n```\n\n\n### Screencast from our Demo\n\n\n| ![](https://github.com/ChinaHackers/SafetyPay/raw/master/Screencast/Screencast1.gif) | ![](https://github.com/ChinaHackers/SafetyPay/raw/master/Screencast/Screencast2.gif) | \n| :------------: | :------------: |\n| `style = .plaintext` | `style = .ciphertext` | \n\n\n\n## Example:\n\n```swift\nimport UIKit\nclass ViewController: UIViewController {\n    override func viewDidLoad() {\n        super.viewDidLoad()\n        /*****  SafetyPayView  *****/\n        let vi = SafetyPayView(frame: CGRect(x: (view.bounds.width - 300) / 2, y: 200, width: 300, height: 50))\n        vi.style = .plaintext\n        view.addSubview(vi)\n    }\n}\n```\n\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevliusir%2Fsafetypay","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevliusir%2Fsafetypay","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevliusir%2Fsafetypay/lists"}