//SecureBase.SBEncoding sbencoding = SecureBase.SBEncoding.UNICODE; SecureBase.SBEncoding sbencoding = SecureBase.SBEncoding.UTF8; SecureBase bs = new SecureBase(sbencoding); bs.SetSecretKey(secretkey); //Encoding string encodeddata = bs.Encode(data); //Decoding string decodeddata = bs.Decode(data);
SecureBase sb = new SecureBase(SecureBase.SBEncoding.UTF8); sb.SetSecretKey("xcompany-secret-key"); //Encoding string filedata = File.ReadAllText("data.txt"); File.WriteAllText("encoded.txt", sb.Encode(filedata)); //Decoding string fileencoded = File.ReadAllText("encoded.txt"); File.WriteAllText("decoded.txt", sb.Decode(fileencoded));
Github'ta bulunan SecureBaseApp uygulaması üzerinden örnek kullanımları inceleyebilirsiniz.
Last updated 19 days ago