सार्वजनिक जानकारी से बना चयन मार्गदर्शन। केवल संदर्भ हेतु।
Basic_Utils एक Dart पैकेज है जो स्ट्रिंग मैनिपुलेशन, तारीख के हैंडलिंग, X509 और PKCS सर्टिफिकेट प्रोसेसिंग, और क्रिप्टोग्राफिक ऑपरेशन जैसे सामान्य कार्यों के लिए आवश्यक उपयोगिता क्लासेस प्रदान करता है। यह Android, iOS, Web, macOS, Windows और Linux जैसे कई प्लेटफॉर्मों पर दोहराए जा सकने वाले, अच्छी तरह से परीक्षण किए गए फ़ंक्शन प्रदान करके विकास दक्षता को बढ़ाता है। इस पैकेज का उपयोग बाहरी निर्भरता के बिना दैनिक प्रोग्रामिंग चुनौतियों के लिए सीधे समाधान खोजने वाले डेवलपर्स के लिए आदर्श है। इसका हल्का डिज़ाइन छोटे और बड़े अनुप्रयोगों दोनों के लिए उपयुक्त है।
उपयोग
स्ट्रिंग प्रारूपण और मान्यता
तिथि और समय प्रबंधन
प्रमाणपत्र और कुंजी प्रबंधन
गोपनीय हैशिंग और कोडिंग
डेटा रूपांतरण उपकरण
क्रॉस-प्लेटफॉर्म उपयोगी कार्य फ़ंक्शन
मुख्य विशेषताएँ
विस्तृत स्ट्रिंग उपकरण
तारीख और समय सहायक
X509 और PKCS समर्थन
निर्मित एन्क्रिप्शन फंक्शन
हल्का और मॉड्यूलर
बहुपлатफॉर्म सुसंगतता
इनके लिए उपयुक्त
मूलभूत उपकरणों की आवश्यकता वाले फ्लटर विकासकर्ता
सुरक्षित डेटा हैंडलिंग की आवश्यकता वाले प्रोजेक्ट
अक्सर स्ट्रिंग या तारीख के ऑपरेशन वाले ऐप्स
विकासकर्ता भारी निर्भरता श्रृंखलाओं से बचते हैं
प्रोटोटाइपिंग और त्वरित विकास
विचार योग्य बातें
मूलभूत उपयोगिता कार्यों तक सीमित
सभी विधियों में निर्मित त्रुटि संभाल नहीं है
उन्नत क्रिप्टोग्राफिक प्रणालियों के लिए डिज़ाइन नहीं किया गया है
Dart के मुख्य प per लाइब्रेरी पर निर्भर है
सरल से मध्यम उपयोग केस के लिए सबसे उपयुक्त
मूल README
संबंधित सोर्स रिपॉज़िटरी के मूल README का स्नैपशॉट। नवीनतम सामग्री के लिए रिपॉज़िटरी देखें।
Basic Utils
A dart package for many helper methods fitting different situations.
As this package is written in pure Dart, it can be used on all platforms on which dart is currently running. This includes the use of frameworks like Flutter, Angular Dart and many more. This package can also be used for command line tools or rest services compiled with dart2native.
Note: Feel free to contribute by creating pull requests or file an issue for bugs, questions and feature requests.
Install
pubspec.yaml
Update pubspec.yaml and add the following line to your dependencies.
dependencies:basic_utils:^5.8.2
Import
Import the package with :
import'package:basic_utils/basic_utils.dart';
Util Classes
The package contains different classes. Each class contains methods that provide a solution for certain problems.
T randomItem<T>(Iterable<T> iterable);
boolisNullOrEmpty(Iterable? iterable);
boolisNotNullOrEmpty(Iterable? iterable);
List<List<T>> chunk<T>(List<T> list, int size);
swap(List<dynamic> input, int a, int b);
List<List<dynamic>> permutate(List<dynamic> data);
CryptoUtils
Helper class for cryptographic operations. This is some kind of high level api for pointycastle and asn1lib.
For a detailed changelog, see the CHANGELOG.md file
Real Live Examples
SSL Toolkit
All-in-one crossplatform (Android/iOS/macOS/Windows) toolkit for SSL, including SSL install check, TLS check, PEM parser, CSR generator and certificate transparency log check.
Copyright and license
MIT License
Copyright (c) 2024 Ephenodrom
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.