This is the first version released. You can encript text easy.
Namespace
Cipher
Cipher.Hash
Cipher.Hexagesimal
Constructor
Secret()
Secret(byte key)
Secret(string secret)
Secret(string secret, byte key)
Methods
Not Async
- Encript(string word)
- Decript(string word)
Async
- EncriptAsync(string word)
- DecriptAsync(string word)
Static Methods
Cipher.Hash
Base64
- Base64Encode(string data)
- Base64Encode(byte[] data)
- Base64Decode(string data)
- Base64Decode(byte[] data)
- Base64UrlEncode(string data)
- Base64UrlEncode(byte[] data)
- Base64UrlDecode(string data)
- Base64EncodeAsync(string data)
- Base64EncodeAsync(byte[] data)
- Base64DecodeAsync(string data)
- Base64DecodeAsync(byte[] data)
- Base64UrlEncodeAsync(string data)
- Base64UrlEncodeAsync(byte[] data)
- Base64UrlDecodeAsync(string data)
Cipher.Helpers
Hexagesimal
- ToHex(int number)
- ToInt(string myHex)
How to use
Secret secret = new Secret();
string code = await secret.EncriptAsync("Hello word");
Console.WriteLine(code);
string decode = await secret.DecriptAsync(code);
Console.WriteLine(decode);
Create in .NET5 to specially to use with Blazor WebAssembly.