{"id":21957621,"url":"https://github.com/bitbeans/helper-net","last_synced_at":"2025-04-23T16:20:51.908Z","repository":{"id":36899697,"uuid":"41206711","full_name":"bitbeans/helper-net","owner":"bitbeans","description":"A small collection of useful helper methods","archived":false,"fork":false,"pushed_at":"2018-03-06T19:45:40.000Z","size":22,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-12T17:51:16.079Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","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/bitbeans.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-08-22T12:50:01.000Z","updated_at":"2019-01-29T09:42:58.000Z","dependencies_parsed_at":"2022-09-07T12:12:52.680Z","dependency_job_id":null,"html_url":"https://github.com/bitbeans/helper-net","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/bitbeans%2Fhelper-net","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitbeans%2Fhelper-net/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitbeans%2Fhelper-net/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitbeans%2Fhelper-net/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitbeans","download_url":"https://codeload.github.com/bitbeans/helper-net/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250468277,"owners_count":21435454,"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-29T08:54:53.578Z","updated_at":"2025-04-23T16:20:51.891Z","avatar_url":"https://github.com/bitbeans.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# helper-net [![Build status](https://img.shields.io/appveyor/ci/bitbeans/helper-net.svg?style=flat-square)](https://ci.appveyor.com/project/bitbeans/helper-net) [![Build Status](https://img.shields.io/travis/bitbeans/helper-net.svg?style=flat-square)](https://travis-ci.org/bitbeans/helper-net) [![NuGet Version](https://img.shields.io/nuget/v/helper-net.svg?style=flat-square)](https://www.nuget.org/packages/helper-net/) [![License](http://img.shields.io/badge/license-MIT-green.svg?style=flat-square)](https://github.com/bitbeans/helper-net/blob/master/LICENSE.md)\n\nA small collection of useful helper methods that I use in several projects.\n\n\n# Status #\n\n**Pull requests and/or optimization proposals are always welcome!**\n\n# Scope #\n\n## ArrayHelper ##\n\n```csharp \nstatic T[] ConcatArrays\u003cT\u003e(params T[][] arrays)\n```\n\n```csharp \nstatic T[] ConcatArrays\u003cT\u003e(T[] arr1, T[] arr2)\n```\n\n```csharp \nstatic T[] SubArray\u003cT\u003e(T[] arr, int start, int length)\n```\n\n```csharp \nstatic T[] SubArray\u003cT\u003e(T[] arr, int start)\n```\n\n```csharp \nstatic bool ConstantTimeEquals(byte[] a, byte[] b)\n```\n\n## ConvensionHelper ##\n\n```csharp \nstatic byte[] IntegerToLittleEndian(int data)\n```\n\n## CryptoHelper ##\n\n```csharp \nstatic byte[] Xor(byte[] data, IReadOnlyList\u003cbyte\u003e keys)\n```\n\n## StreamHelper ##\n\n```csharp \nstatic byte[] ReadFully(Stream input)\n```\n\n## ShellHelper ##\n\n```csharp \nstatic string Escape(string argument, bool quote = false)\n```\n\n```csharp \nstatic string ExecuteShellCommand(string filename, string arguments, int timeout = 9000)\n```\n\n## PaddingHelper ##\n\n```csharp \nstatic byte[] AddPkcs7(byte[] data, int paddingLength)\n```\n\n```csharp \nstatic byte[] RemovePkcs7(byte[] paddedByteArray)\n```\n\n```csharp \nstatic byte[] AddZero(byte[] data, int paddingLength)\n```\n\n```csharp \nstatic byte[] RemoveZero(byte[] paddedByteArray)\n```\n\n## RandomHelper ##\n\n### SecureRandomProvider ###\n\n```csharp \nstatic int Next()\n```\n\n```csharp \nstatic int Next(int maxValue)\n```\n\n```csharp \nstatic int Next(int minValue, int maxValue)\n```\n\n```csharp \nstatic void GetBytes(byte[] data)\n```\n\n```csharp \nstatic void GetNonZeroBytes(byte[] data)\n```\n\n### RandomProvider ###\n\n```csharp \nstatic int Next()\n```\n\n```csharp \nstatic int Next(int maxValue)\n```\n\n```csharp \nstatic int Next(int minValue, int maxValue)\n```\n\n```csharp \nstatic void GetBytes(byte[] data)\n```\n\n### Well512RandomProvider ###\n\n```csharp \nstatic int Next()\n```\n\n```csharp \nstatic int Next(int maxValue)\n```\n\n```csharp \nstatic int Next(int minValue, int maxValue)\n```\n\n## License\n[MIT](https://en.wikipedia.org/wiki/MIT_License)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitbeans%2Fhelper-net","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitbeans%2Fhelper-net","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitbeans%2Fhelper-net/lists"}