Skip to content

Latest commit

 

History

History
73 lines (44 loc) · 2.37 KB

File metadata and controls

73 lines (44 loc) · 2.37 KB

TR

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 Wiki

Kullanım/Örnek

//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);

Ekran Görüntüleri

Kodlama (Farklı gizli anahtarlarla)

Kodlama Kodlama

Kod çözme

Kod çözme Kod çözme

EN

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 Wiki

Using/Example

//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);

Screenshots

Encoding (Different secret keys)

Encoding Encoding

Decoding

Decoding Decoding