mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-05 18:48:41 +00:00
eb21e6d6628eb2e97c0ecca1b308591ee26c43fd
Switched the paste info displaying from server side to client side, which also added a new api to fetch the info. A new api to check if the user is authorized, (/api/accounts/authenticated) ## Commit Message Details Below Generated by Copilot Add compression, and install script Added EncryptByteArray and DecryptByteArray methods to the Encryption class for handling byte array encryption and decryption. Removed unused namespaces from Program.cs. Replaced direct file content reading and HTML manipulation with database queries and JSON responses for better error handling and response consistency. Added JSON error responses for various error conditions. Implemented content compression and decompression using GZip in Compression.cs to reduce file size and improve performance. Updated paste creation and retrieval logic to handle compressed and encrypted content. Added new API endpoints for fetching paste information and checking user authentication status. Modified HTML templates to dynamically fetch and display paste information and user authentication status using JavaScript. Added Paste UID property to the Paste class to store unique identifiers for pastes. Created a new Compression class to handle string compression and decompression using GZip. Updated the InitializeAsync method to create the pastes.sqlite file if it does not exist. Enhanced the user interface to show or hide elements based on user authentication status and paste ownership (client side). Improved error handling and user feedback in the JavaScript code. Added logic to handle compressed and encrypted content in various parts of the application. Added a new Bash script (install.sh) to install Sharpbin on a Linux system, which includes fetching the latest release, extracting it, and configuring Cloudflare keys.
Sharpbin
Sharpbin is a Pastebin type website completely in C#, except for the frontend, being pure HTML & CSS. Sharpbin can be used for sharing large amounts of text.
Features
- Account System
- Standalone
- Raw Text Serving
- Admin Panel that includes banning users
- Search feature for pastes
- Recent Pastes and Paste Archives
- Pastes can be deleted by an admin or the creator
- User profile pages
- Private encrypted pastes, sadly the encryption is server side, although client side may be soon!
- Mobile Support ... And more to come!
Demo Website & Screenshots
You can find the test website at https://bin.whoswhip.top , there is no removed functionality and is the exact same code in this repo.
Description
Mirror of https://github.com/whoswhip/Sharpbin
https://sharpbin.cc
Readme
GPL-3.0
2.2 MiB
Languages
C#
49.5%
Svelte
35.3%
TypeScript
13.3%
HTML
1.1%
CSS
0.3%
Other
0.5%