{"id":19864179,"url":"https://github.com/sr-lab/skeptic-lang","last_synced_at":"2026-03-19T12:04:44.451Z","repository":{"id":75386397,"uuid":"198649216","full_name":"sr-lab/skeptic-lang","owner":"sr-lab","description":"A DSL for asserting password composition policy effectiveness.","archived":false,"fork":false,"pushed_at":"2019-12-10T18:36:27.000Z","size":47,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-01T00:29:39.446Z","etag":null,"topics":["dsl","formal-methods","password-policy","power-law","zipfs-law"],"latest_commit_sha":null,"homepage":"","language":"Idris","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/sr-lab.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":"2019-07-24T14:14:18.000Z","updated_at":"2023-05-15T17:34:45.000Z","dependencies_parsed_at":"2023-07-25T18:02:33.191Z","dependency_job_id":null,"html_url":"https://github.com/sr-lab/skeptic-lang","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sr-lab/skeptic-lang","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sr-lab%2Fskeptic-lang","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sr-lab%2Fskeptic-lang/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sr-lab%2Fskeptic-lang/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sr-lab%2Fskeptic-lang/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sr-lab","download_url":"https://codeload.github.com/sr-lab/skeptic-lang/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sr-lab%2Fskeptic-lang/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30161946,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T04:22:03.816Z","status":"ssl_error","status_checked_at":"2026-03-06T04:22:00.183Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["dsl","formal-methods","password-policy","power-law","zipfs-law"],"created_at":"2024-11-12T15:17:43.025Z","updated_at":"2026-03-06T04:38:06.568Z","avatar_url":"https://github.com/sr-lab.png","language":"Idris","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Skeptic PaCPAL DSL\nSkeptic Password Composition Policy Assertion Language. A DSL for asserting password composition policy effectiveness.\n\n![Logo](assets/logo-text-h.svg)\n\n## Overview\nThe Skeptic Password composition Policy Assertion Language (PaCPAL) sits on top of the output produced by [Pyrrho](https://github.com/sr-lab/pyrrho) from a [Skeptic Authority](https://github.com/sr-lab/skeptic-authority-template) and a large password dataset, to provide a facility for easy extraction of results.\n\nAt its core, its a language for creating, grouping, ranking and comparing the slopes (i.e. the uniformity) of password probability distributions interpolated as power-law equations.\n\n## Examples\nA few examples are provided in the `./examples` folder. These demonstrate different aspects of PaCPAL and are as follows:\n\n### Inlining (`inline.sk`)\nDemonstrates the inlining of power-law equations in PaCPAL:\n\n```\n# Here we're declaring some Zipf equations inline and binding them to a name.\nzipf 0.0011742221285749555 -0.6588793976685547 as 000webhostbasic8prop\nzipf 0.0009680954123045289 -0.6479434369803485 as 000webhostbasic8uni\n\n# Another assertion.\nassert 000webhostbasic8prop steeper 000webhostbasic8uni between 1 and 1000\n```\n\nThe `zipf` keyword allows the inline creation of a named power-law equation. Those above are of the form:\n\n```\n000webhostbasic8prop = [y = 0.0011742221285749555 * x^-0.6588793976685547]\n000webhostbasic8uni = [y = 0.0009680954123045289 * x^-0.6479434369803485]\n```\n\nThese are then compared with an assertion, which asserts the following:\n\n```\nTwo x-axis points corresponding to optimal attack size:\nx1 = 1\nx2 = 1000\n\nY-coordinates at each point, for curve named '000webhostbasic8prop':\ny1 = 0.0011742221285749555 * x1^-0.6588793976685547\ny2 = 0.0011742221285749555 * x2^-0.6588793976685547\n\nY-coordinates at each point, for curve named '000webhostbasic8uni':\ny1' = 0.0009680954123045289 * x1^-0.6479434369803485\ny2' = 0.0009680954123045289 * x2^-0.6479434369803485\n\nWhat we are asserting:\n(|y1 - y2| / |x1 - x2|) \u003e (|y1' - y2'| / |x1 - x2|)\n```\n\n### Loading (`loading.sk`)\nDemonstrates loading equations from files generated by Pyrrho of the form:\n\n```json\n{\n  \"amp\": 0.00011059984812070353,\n  \"alpha\": -0.17896888889001078\n}\n```\n\nThis is accomplished with the `load` keyword:\n\n```\n# Loading Zipf equations from files generated by Pyrrho and binding them to a name.\nload equations/yahoo-basic6_basic8_proportional.json as yb8prop\nload equations/yahoo-basic6_basic12_proportional.json as yb12prop\n\n# Another assertion.\nassert yb8prop steeper yb12prop between 1 and 1000\n```\n\n### Grouping `groups.sk`\nDemonstrates placing equations into named groups and accessing them using `group` and `add` keywords.\n\n```\n# Loading Zipf equations from files generated by Pyrrho and binding them to a name.\nload equations/yahoo-basic6_basic8_proportional.json as yb8prop\nload equations/yahoo-basic6_basic12_proportional.json as yb12prop\n\n# Build group.\ngroup yahoo\nadd yb8prop to yahoo as b8\nadd yb12prop to yahoo as b12\n\n# Assert using groups.\nassert b8 yahoo steeper b12 yahoo between 1 and 100\n```\n\n### Ranking `ranking.sk`\nDemonstrates ranking a group using the `rank` keyword.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsr-lab%2Fskeptic-lang","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsr-lab%2Fskeptic-lang","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsr-lab%2Fskeptic-lang/lists"}