Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork1
📚 Provides functions for encoding and decoding base 2, 8, 10, 16, 32, 64, 85 and 91 and more
License
Roydl/Text
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
The idea was to create a comfortable way of binary-to-text encoding.
You can easily create instances of any type to translateStream
,byte[]
orstring
data. Extension methods are also provided for all types.
$ dotnet add package Roydl.Text
Type | Encoding |
---|---|
Base-2 | Binary character set:0 and1 |
Base-8 | Octal character set:0-7 |
Base-10 | Decimal character set:0-9 |
Base-16 | Hexadecimal character set:0-9 anda-f |
Base-32 | Standard 32-character set:A–Z and2–7 ;= for padding |
Base-64 | Standard 64-character set:A–Z ,a–z ,0–9 ,+ and/ ;= for padding |
Base-85 | Standard 85-character set:!"#$%&'()*+,-./ ,0-9 ,:;<=>?@ ,A-Z ,[]^_` anda-u |
Base-91 | Standard 91-character set:A–Z ,a–z ,0–9 , and!#$%&()*+,-.:;<=>?@[]^_`{|}~" |
// The `value` must be type `string` or `byte[]`, if `BinToTextEncoding` is// not set, `Base64` is used by default.stringbase85text=value.Encode(BinToTextEncoding.Base85);byte[]original=value.Decode(BinToTextEncoding.Base85);// if `value` to decode is `byte[]`stringoriginal=value.DecodeString(BinToTextEncoding.Base85);// if `value` to decode is `string`// The `value` of type `string` can also be a file path, which is not// recommended for large files, in this case you should create a// `Base85` instance and use `FileStream` to read and write.stringbase85text=value.EncodeFile(BinToTextEncoding.Base85);byte[]original=value.DecodeFile(BinToTextEncoding.Base85);
- Star this Project ⭐ and show me that this project interests you 🤗
- Open an Issue ☕ to give me your feedback and tell me your ideas and wishes for the future 😎
- Open a Ticket 📫 if you don't have a GitHub account, you can contact me directly on my website 😉
- Donate by PayPal 💸 to buy me some cakes 🍰
Please note that I cannot fix bugs that are unknown to me. So do yourself and me the favor and get in touch with me. 🤕
About
📚 Provides functions for encoding and decoding base 2, 8, 10, 16, 32, 64, 85 and 91 and more
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Contributors2
Uh oh!
There was an error while loading.Please reload this page.