SecureBase kütüphanesi standart base64 algoritmasına ek olarak gizli anahtar seçeneği sunmaktadır. Böylelikle kütüphaneyi kullanan projelere özgü base64 işlemi gerçekleşir. Her projenin gizli anahtarı farklı olacağından oluşan base64 çıktısıda gizli anahtara bağlı olarak değişir.
Detaylı bilgi için aşağıdaki kaynağı inceleyiniz.
//SecureBase.SBEncoding sbencoding = SecureBase.SBEncoding.UNICODE;
SecureBase.SBEncoding sbencoding = SecureBase.SBEncoding.UTF8;
SecureBase bs = new SecureBase(sbencoding);
bs.SetSecretKey(secretkey);
//Text to Base64
string encodeddata = bs.Encode(data);
//Base64 to Text
string decodeddata = bs.Decode(data);Kodlama (Farklı gizli anahtarlarla)
Kod çözme
The SecureBase library offers a secret key option in addition to the standard base64 algorithm. Since the secret key will be different in each project, the base64 output will also vary depending on the secret key.
For detailed information, please review the source below.
//SecureBase.SBEncoding sbencoding = SecureBase.SBEncoding.UNICODE;
SecureBase.SBEncoding sbencoding = SecureBase.SBEncoding.UTF8;
SecureBase bs = new SecureBase(sbencoding);
bs.SetSecretKey(secretkey);
//Text to Base64
string encodeddata = bs.Encode(data);
//Base64 to Text
string decodeddata = bs.Decode(data);Encoding (Different secret keys)
Decoding



