{"id":16981393,"url":"https://github.com/charonn0/rb-rc4","last_synced_at":"2026-01-04T22:34:09.169Z","repository":{"id":145923045,"uuid":"234518509","full_name":"charonn0/RB-RC4","owner":"charonn0","description":"An RC4 implementation in Realbasic","archived":false,"fork":false,"pushed_at":"2023-01-01T08:09:05.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-26T17:47:52.913Z","etag":null,"topics":["rc4","realbasic","xojo"],"latest_commit_sha":null,"homepage":null,"language":"REALbasic","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/charonn0.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":"2020-01-17T09:43:37.000Z","updated_at":"2022-06-07T01:43:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"cc864e0f-e925-4536-9a2e-ee6c692f3e34","html_url":"https://github.com/charonn0/RB-RC4","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/charonn0%2FRB-RC4","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charonn0%2FRB-RC4/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charonn0%2FRB-RC4/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charonn0%2FRB-RC4/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/charonn0","download_url":"https://codeload.github.com/charonn0/RB-RC4/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244883064,"owners_count":20525960,"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":["rc4","realbasic","xojo"],"created_at":"2024-10-14T02:05:22.667Z","updated_at":"2026-01-04T22:34:09.143Z","avatar_url":"https://github.com/charonn0.png","language":"REALbasic","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RB-RC4\n\nThe `RC4Stream` class implements the [RC4 stream cipher](https://en.wikipedia.org/wiki/RC4). RC4 is vulnerable to several forms of attack and generally\nshould not be used to secure important data. In particular there is no authentication provided. ***Use at your own risk.***\n\nThe `RC4Stream.RandomBytes()` method returns the specified number of bytes from the RC4 key stream. \n\nThe `RC4Stream.Process()` method combines the user-provided bytes with an equal number of bytes from the key stream, performing\nboth encryption and decryption.\n\nThe `RC4Stream.Offset` property gets and sets the position in the key stream.\n\n## Example\nEncrypt and decrypt a message:\n```realbasic\n  Dim message As String = \"Attack at dawn!\"\n  Dim key As String = \"seekrit\"\n  Dim rc4 As New RC4Stream(key)\n  Dim ciphertxt As MemoryBlock = rc4.Process(message) ' encrypt\n  rc4.Offset = 0 ' reset for decryption\n  Dim cleartxt As String = rc4.Process(ciphertxt) ' decrypt\n```\n\nGenerate random bytes:\n```realbasic\n  Dim key As String = \"seekrit\"\n  Dim rc4 As New RC4Stream(key)\n  Dim rand As MemoryBlock = rc4.RandomBytes(64) ' generate 64 pseudo-random bytes\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcharonn0%2Frb-rc4","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcharonn0%2Frb-rc4","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcharonn0%2Frb-rc4/lists"}